Introduce optional support for ansible.cfg (#88)

* Introduce optional support for ansible.cfg

* Add missing ansible.cfg local & remote tests

* Update Readme

* Fix broken local test

---------

Co-authored-by: thehedhly <thehedhly@users.noreply.github.com>
This commit is contained in:
H.Hedhly
2024-01-17 10:06:09 +01:00
committed by GitHub
parent 3c4a9420c1
commit 0689c791d8
6 changed files with 45 additions and 4 deletions

View File

@@ -75,6 +75,11 @@ jobs:
key: ${{env.SSH_PRIVATE_KEY}}
known_hosts: ${{env.SSH_KNOWN_HOSTS}}
directory: test
configuration: |
[defaults]
callbacks_enabled = ansible.posix.profile_tasks, ansible.posix.timer
stdout_callback = yaml
nocows = false
vault_password: test
requirements: requirements.yml
inventory: |
@@ -92,6 +97,17 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: With custom ansible.cfg
uses: ./
with:
playbook: playbook.yml
directory: test
configuration: |
[defaults]
callbacks_enabled = ansible.posix.profile_tasks, ansible.posix.timer
stdout_callback = yaml
nocows = false
options: --inventory hosts
- name: With requirements
uses: ./
with: