Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - hosts: all
- tasks:
- - name: Test inventory_hostname
- debug: var=inventory_hostname
- - name: Test ansible_hostname
- debug: var=ansible_hostname
- - name: Test eth0
- debug: var=ansible_eth0
- - name: Test eth1
- debug: var=ansible_eth1
- - name: Install Pip
- apt: name=python-pip state=present
- - name: Install boto
- pip: name=boto
- - name: create record externat ipv4 dns record
- route53:
- aws_access_key: ***
- aws_secret_key: ***
- command: create
- zone: domain.net
- record: "{{ ansible_hostname }}.domain.net."
- overwrite: yes
- type: A
- ttl: 3600
- value: "{{ ansible_eth0.ipv4.address }}"
- wait: no
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement