Quote creds and modes in ansiblehost tasks
This commit is contained in:
parent
65ae3dd958
commit
777a9d86a0
@ -33,12 +33,12 @@
|
|||||||
copy:
|
copy:
|
||||||
src: awscredentials
|
src: awscredentials
|
||||||
dest: ~/.aws/credentials
|
dest: ~/.aws/credentials
|
||||||
mode: 0600
|
mode: "0600"
|
||||||
- name: Copy Ansible private key
|
- name: Copy Ansible private key
|
||||||
copy:
|
copy:
|
||||||
src: ansiblekey
|
src: ansiblekey
|
||||||
dest: ~/.ssh/ansible
|
dest: ~/.ssh/ansible
|
||||||
mode: 0600
|
mode: "0600"
|
||||||
- name: Create system copy of Ansible repo
|
- name: Create system copy of Ansible repo
|
||||||
git:
|
git:
|
||||||
force: true
|
force: true
|
||||||
@ -46,7 +46,7 @@
|
|||||||
dest: /opt/ansible-repo
|
dest: /opt/ansible-repo
|
||||||
- name: Set up pull and run cronjob
|
- name: Set up pull and run cronjob
|
||||||
cron:
|
cron:
|
||||||
hour: 0
|
hour: "0"
|
||||||
name: ansible-pull
|
name: ansible-pull
|
||||||
job: "cd /opt/ansible-repo && ansible-playbook ec2.yml"
|
job: "cd /opt/ansible-repo && ansible-playbook ec2.yml"
|
||||||
become: true
|
become: true
|
||||||
|
Loading…
Reference in New Issue
Block a user