Closed muram closed 4 years ago
Tested and validated.
ansible-playbook 2.9.6 config file = /Users/muram/Projects/ansible/ansible.cfg configured module search path = ['/Users/muram/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/Cellar/ansible/2.9.6_1/libexec/lib/python3.8/site-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 3.8.2 (default, Mar 11 2020, 00:29:50) [Clang 11.0.0 (clang-1100.0.33.17)] PLAYBOOK: al-agent.yml ************************************************************************************************************************************************************************************************************* 1 plays in al-agent.yml TASK [Gathering Facts] ************************************************************************************************************************************************************************************************************* ok: [i-009cd54f56aad2a96] TASK [al-agents-ansible-playbooks : debug] ***************************************************************************************************************************************************************************************** ok: [i-009cd54f56aad2a96] => { "msg": "Ubuntu" } TASK [al-agents-ansible-playbooks : debug] ***************************************************************************************************************************************************************************************** ok: [i-009cd54f56aad2a96] => { "msg": "18" } TASK [al-agents-ansible-playbooks : debug] ***************************************************************************************************************************************************************************************** ok: [i-009cd54f56aad2a96] => { "msg": "18.04" } TASK [al-agents-ansible-playbooks : Include Ansible OS family variables] *********************************************************************************************************************************************************** task path: /Users/muram/Projects/ansible/roles/al-agents-ansible-playbooks/tasks/_linux.yml:2 ok: [i-009cd54f56aad2a96] => { "ansible_facts": { "al_agent_base_url": "https://scc.alertlogic.net", "al_agent_initscript": "rsyslog", "al_agent_pkg_name_arch": "{{ ( ansible_architecture == 'x86_64' ) | ternary('amd64', ansible_architecture) }}", "al_agent_pkg_name_ext": "deb", "al_agent_pkg_name_prefix": "al-agent_LATEST_", "al_agent_pkg_url": "{{ al_agent_base_url }}/software/{{ al_agent_pkg_name_prefix }}{{al_agent_pkg_name_arch}}.{{al_agent_pkg_name_ext}}", "al_agent_syslog_ng_source": "{{ ( ansible_distribution_major_version >= '7' ) | ternary('s_all', 's_sys') }}" }, "ansible_included_var_files": [ "/Users/muram/Projects/ansible/roles/al-agents-ansible-playbooks/vars/Debian.yml" ], "changed": false } changed: [i-009cd54f56aad2a96] => { "changed": true, "cmd": [ "/etc/init.d/al-agent", "configure" ], "delta": "0:00:00.006436", "end": "2020-03-20 16:12:35.732724", "invocation": { "module_args": { "_raw_params": "/etc/init.d/al-agent configure ", "_uses_shell": false, "argv": null, "chdir": null, "creates": null, "executable": null, "removes": null, "stdin": null, "stdin_add_newline": true, "strip_empty_ends": true, "warn": true } }, "rc": 0, "start": "2020-03-20 16:12:35.726288", "stderr": "Mar 20 16:12:35 2020 al-agent[4338]: ALC00083I [alc_config_unregister] clean up registration artefacts", "stderr_lines": [ "Mar 20 16:12:35 2020 al-agent[4338]: ALC00083I [alc_config_unregister] clean up registration artefacts" ], "stdout": "*** configuration settings saved ***", "stdout_lines": [ "*** configuration settings saved ***" ] } changed: [i-009cd54f56aad2a96] => { "changed": true, "cmd": [ "/etc/init.d/al-agent", "provision", "--key", "a0b2f55a81a4d4df07ad8ac43455de3f635fb13d5967bb99ca" ], "delta": "0:00:01.694726", "end": "2020-03-20 16:12:40.035189", "invocation": { "module_args": { "_raw_params": "/etc/init.d/al-agent provision --key a0b2f55a81a4d4df07ad8ac43455de3f635fb13d5967bb99ca", "_uses_shell": false, "argv": null, "chdir": null, "creates": null, "executable": null, "removes": null, "stdin": null, "stdin_add_newline": true, "strip_empty_ends": true, "warn": true } }, "rc": 0, "start": "2020-03-20 16:12:38.340463", "stderr": "Mar 20 16:12:38 2020 al-agent[4362]: ALC00083I [alc_config_unregister] clean up registration artefacts\nMar 20 16:12:38 2020 al-agent[4362]: ALC00709I [alc_host_detect_type] Local host appears to be in Amazon EC2 environment\nMar 20 16:12:40 2020 al-agent[4362]: ALC00080I [alc_config_provision_host] Fetched host certificate \"/var/alertlogic/etc/host_crt.pem\", \"/var/alertlogic/etc/host_key.pem\"", "stderr_lines": [ "Mar 20 16:12:38 2020 al-agent[4362]: ALC00083I [alc_config_unregister] clean up registration artefacts", "Mar 20 16:12:38 2020 al-agent[4362]: ALC00709I [alc_host_detect_type] Local host appears to be in Amazon EC2 environment", "Mar 20 16:12:40 2020 al-agent[4362]: ALC00080I [alc_config_provision_host] Fetched host certificate \"/var/alertlogic/etc/host_crt.pem\", \"/var/alertlogic/etc/host_key.pem\"" ], "stdout": "", "stdout_lines": [] } PLAY RECAP ************************************************************************************************************************************************************************************************************************* i-009cd54f56aad2a96 : ok=14 changed=5 unreachable=0 failed=0 skipped=23 rescued=0 ignored=0
+1
Tested and validated.