Files
semaphore/playbooks/check_ansible_config.yml

16 lines
498 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
- 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