2 - name: Uninstall outdated python packages
11 - name: Install new python packages
20 - name: Common packages
36 - name: Facts need a home.
39 path: /etc/ansible/facts.d
44 - name: Install any facts.
45 with_items: "{{ fact_scripts|default([]) }}"
47 dest: /etc/ansible/facts.d/{{ item }}.fact
48 src: "{{ item }}.fact"
55 when: new_facts|changed
58 - name: Gather EC2 info
61 - name: Gather own tags
64 region: "{{ ansible_ec2_placement_region }}"
65 resource: "{{ ansible_ec2_instance_id }}"
68 - name: Name instance from ID and ASG module
69 when: my_tags['tags']['aws:autoscaling:groupName'] is defined
72 region: "{{ ansible_ec2_placement_region }}"
73 resource: "{{ ansible_ec2_instance_id }}"
75 Name: "{{ my_tags['tags']['module']|default('(no module)') }}_{{ ansible_ec2_instance_id }}"
79 dest: /etc/update-motd.d/31-branding
87 command: /usr/sbin/update-motd
91 dest: /etc/profile.d/awsible.sh
99 dest: /home/ec2-user/.bash_prompt
105 - name: use fancy prompt
107 dest: /home/ec2-user/.bash_profile
109 line: "[[ -f ~/.bash_prompt ]] && . ~/.bash_prompt"
111 - name: Create AWS config
114 path: /home/ec2-user/.aws
119 - name: awscli config
121 dest: /home/ec2-user/.aws/config