Добавить test-playbooks/check_ansible_config
This commit is contained in:
16
test-playbooks/check_ansible_config
Normal file
16
test-playbooks/check_ansible_config
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
- name: Check Ansible Config
|
||||||
|
hosts: localhost
|
||||||
|
gather_facts: no
|
||||||
|
tasks:
|
||||||
|
- name: Show current config file
|
||||||
|
debug:
|
||||||
|
msg: "Конфиг берется из: {{ lookup('env', 'ANSIBLE_CONFIG') | default('Не задан через ENV, ищем стандартный', true) }}"
|
||||||
|
|
||||||
|
- name: Run ansible --version to see config path
|
||||||
|
command: ansible --version
|
||||||
|
register: version_out
|
||||||
|
|
||||||
|
- name: Show version output
|
||||||
|
debug:
|
||||||
|
var: version_out.stdout_lines
|
||||||
Reference in New Issue
Block a user