Commit ecc5e098 authored by Jürgen Haas's avatar Jürgen Haas

Gather current date when starting

Improve CLI output
parent 23d70306
Pipeline #6983 passed with stage
in 5 minutes and 25 seconds
......@@ -6,6 +6,10 @@ fact_caching = jsonfile
fact_caching_connection = /root/.ansible/facts
fact_caching_timeout = 86400
# Console output
stdout_callback = yaml
bin_ansible_callbacks = True
# Modules
library = /opt/ansible/general/plugins/_module
......
......@@ -93,6 +93,10 @@
value: "{{ lookup('env','HOME') }}/.ansible/facts"
- option: "fact_caching_timeout"
value: "86400"
- option: "stdout_callback"
value: "yaml"
- option: "bin_ansible_callbacks"
value: "True"
- option: "library"
value: "{{ path }}plugins/_module"
- option: "action_plugins"
......
......@@ -15,6 +15,8 @@
delegate_to: localhost
debug: msg="You need at least version 2.5.0, currently using version {{ ansible_version.full }}"
failed_when: ansible_version.full is version_compare('2.5.0', operator='lt', strict=False)
- name: "Read current date and time"
setup: filter='ansible_date_time' gather_subset=!all,min
- name: "Read IP Address"
setup: filter='ansible_default_ipv4' gather_subset=network
when: static_ipv4 is not defined or static_ipv4 == '' or ansible_default_ipv4 is not defined
......
Subproject commit b8112fa77752f8522e323a417e89a386039a34f1
Subproject commit 40c6abbc24f8921860a3fd58b1ae182df6cb51aa
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment