Hi ,
The below mentioned script is not working for fresh gateways
---
- hosts: "{{ target }}"
gather_facts: no
connection: local
tasks:
- name: "Create config_system on the gateway"
raw: echo "config_system --config-string \"hostname={{ hostname }}&ftw_sic_key={{ sickey }}&timezone='America/New_York'&install_security_managment=false&install_mgmt_primary=false&install_security_gw=true&gateway_daip=false&install_ppak=true&gateway_cluster_member=false&download_info=true\" >> ftw.output & " > /home/admin/ftwstart
- name: "Change permissions"
raw: chmod 755 ftwstart
- name: "Run the FTW Setup"
command: "/bin/bash /home/admin/ftwstart"
- name: Wait until the FTW completes
wait_for:
path: /etc/.wizard_accepted
register: exists
until: exists|success
retries: 20
delay: 15
- name: Waiting for 10 seconds before reboot
pause:
seconds: 10
- name: Rebooting
command: "shutdown -r now"
I am getting the below error while executing from ansible server.
Apr 5 07:31:29 2019 Gateway01 ansible-wait_for: Invoked with active_connection_states=['ESTABLISHED', 'FIN_WAIT1', 'FIN_WAIT2', 'SYN_RECV', 'SYN_SENT', 'TIME_WAIT'] state=started connect_timeout=5 delay=0 msg=None host=127.0.0.1 sleep=1 timeout=300 exclude_hosts=None search_regex=None path=/etc/.wizard_accepted port=None
But first-time wizard already installed gateways the playbook is working fine .Kindly help on this