Re: [ansible-project] Schedule Playbook with crontab

2017-07-13 Thread mail . philfriend
On Wednesday, July 12, 2017 at 6:08:25 PM UTC+2, Brian Coca wrote: > > bin/ansible is for Adhoc tasks, you want bin/ansible-playbook is for > executing playbooks > > this makes no sense: > /usr/bin/ansible /home/ansibleuser/ansible/playbooks/ansible-playbook > device_bak_2.yml > > I think

Re: [ansible-project] Schedule Playbook with crontab

2017-07-13 Thread mail . philfriend
Thank you so much Brian, it works perfectly. On Wednesday, July 12, 2017 at 6:08:25 PM UTC+2, Brian Coca wrote: > > bin/ansible is for Adhoc tasks, you want bin/ansible-playbook is for > executing playbooks > > this makes no sense: > /usr/bin/ansible

[ansible-project] Yaml statement over multiple lines.

2018-02-13 Thread mail . philfriend
Hi, How should I split this dest: statement into multiple lines ? - copy: content: "{{ config.stdout[0] }}" *dest: "{{ backup_root }}/{{ inventory_hostname }}/dhcp_leases_{{ ansible_date_time.year }}{{ ansible_date_time.month }}{{ ansible_date_time.day }}{{