2 - name: bootstrap /data
7 when: not datadir.stat.exists
9 - name: Create local asset directory
10 when: ASSET_PATH is defined
13 path: "{{ ASSET_PATH }}"
18 - name: Uninstall outdated python packages
27 - name: Install new python packages
36 - name: Common packages
52 - name: Facts need a home.
55 path: /etc/ansible/facts.d
60 - name: Install any facts.
61 with_items: "{{ fact_scripts|default([]) }}"
63 dest: /etc/ansible/facts.d/{{ item }}.fact
64 src: "{{ item }}.fact"
71 when: new_facts|changed
74 - name: Gather EC2 info
77 - name: Gather own tags
80 region: "{{ ansible_ec2_placement_region }}"
81 resource: "{{ ansible_ec2_instance_id }}"
84 - name: Name instance from ID and ASG module
85 when: my_tags['tags']['aws:autoscaling:groupName'] is defined
88 region: "{{ ansible_ec2_placement_region }}"
89 resource: "{{ ansible_ec2_instance_id }}"
91 Name: "{{ my_tags['tags']['module']|default('(no module)') }}_{{ ansible_ec2_instance_id }}"
95 dest: /etc/update-motd.d/31-branding
103 command: /usr/sbin/update-motd
105 - name: profile stuff
107 dest: /etc/profile.d/awsible.sh
115 dest: /home/ec2-user/.bash_prompt
121 - name: use fancy prompt
123 dest: /home/ec2-user/.bash_profile
125 line: "[[ -f ~/.bash_prompt ]] && . ~/.bash_prompt"
127 - name: Create AWS config
130 path: /home/ec2-user/.aws
135 - name: awscli config
137 dest: /home/ec2-user/.aws/config