1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_base.git synced 2024-08-16 14:29:50 +02:00

improve versionscheck

This commit is contained in:
L3D 2020-08-10 10:42:47 +02:00
parent 53829ac72a
commit 78674496c7
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
2 changed files with 11 additions and 1 deletions

View file

@ -1,4 +1,13 @@
--- ---
- name: Print OS Infos - name: Print OS Infos
debug: debug:
msg: " ansible_os_family = '{{ ansible_os_family }}'\n ansible_distribution = '{{ ansible_distribution }}'\n ansible_distribution_version = '{{ ansible_distribution_version }}'\n ansible_distribution_release = '{{ ansible_distribution_release }}'\n ansible_machine = '{{ ansible_machine }}'\n\n\n ansible_hostname = '{{ ansible_hostname }}'\n ansible_fqdn = '{{ ansible_fqdn }}'\n" msg: |
ansible_os_family = '{{ ansible_os_family }}'
ansible_distribution = '{{ ansible_distribution }}'
ansible_distribution_version = '{{ ansible_distribution_version }}'
ansible_distribution_release = '{{ ansible_distribution_release }}'
ansible_machine = '{{ ansible_machine }}'
inventory_hostname = '{{ inventory_hostname }}'
ansible_hostname = '{{ ansible_hostname }}'
ansible_fqdn = '{{ ansible_fqdn }}'

View file

@ -14,6 +14,7 @@
register: playbook_version register: playbook_version
when: submodules_versioncheck|bool when: submodules_versioncheck|bool
ignore_errors: yes ignore_errors: yes
failed_when: false
- name: Print remote role version - name: Print remote role version
debug: debug: