i have a very simple ansible playbook/tasks to change NTP-servers.
This works well and can be imported and started with foreman except ansible variables are not imported to foreman.
So how to handle this?
I want to set and overwrite the ansible variables via foreman GUI.
Is this possible?
i already read a post where to write variables in default folder but i did not get it working:-(
#pwd /etc/ansible/roles/test #cat vars/main.yml --- # vars file for test NTP_SERVERS: - 192.168.0.15 - 192.168.0.151 - 192.168.0.152 #cat tasks/main.yml --- # tasks file for test - name: Copy the chrony.conf template file template: src=templates/chrony.conf.j2 dest=/etc/chrony.conf register: ntp_conf - name: restart chrony service: name: chronyd state: restarted when: ntp_conf.changed