Quote creds and modes in ansiblehost tasks

This commit is contained in:
Salt 2020-02-06 01:01:18 -06:00
parent 65ae3dd958
commit 777a9d86a0

View File

@ -33,12 +33,12 @@
copy:
src: awscredentials
dest: ~/.aws/credentials
mode: 0600
mode: "0600"
- name: Copy Ansible private key
copy:
src: ansiblekey
dest: ~/.ssh/ansible
mode: 0600
mode: "0600"
- name: Create system copy of Ansible repo
git:
force: true
@ -46,7 +46,7 @@
dest: /opt/ansible-repo
- name: Set up pull and run cronjob
cron:
hour: 0
hour: "0"
name: ansible-pull
job: "cd /opt/ansible-repo && ansible-playbook ec2.yml"
become: true