Skip to content

ENT-14364: Added run-ansible-playbooks module - #162

Merged
larsewi merged 3 commits into
cfengine:masterfrom
larsewi:ansible-promise
Sep 4, 2026
Merged

ENT-14364: Added run-ansible-playbooks module#162
larsewi merged 3 commits into
cfengine:masterfrom
larsewi:ansible-promise

Conversation

@larsewi

@larsewi larsewi commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Runs Ansible playbooks based on input from Build in Mission Portal or 'cfbs input'.

Ticket: ENT-14364
Signed-off-by: Lars Erik Wik lars.erik.wik@northern.tech

Tested manually with this project https://github.com/larsewi/polly/tree/cccb642519b73874620ae51846e628b3e53be8ca

$ sudo cf-agent -KI
    info: Task 'Create marker file' successfully changed

@larsewi
larsewi force-pushed the ansible-promise branch 5 times, most recently from 9cdee57 to ec3482f Compare September 3, 2026 12:11
@cf-bottom

Copy link
Copy Markdown

Thanks for submitting a pull request! Maybe @craigcomstock can review this?

The agent forwards the standard comment attribute to the promise module,
but the module only accepted its own attributes and so failed validation
with "Unknown attribute 'comment'". Declare it so that it is accepted.

Ticket: CFE-4745
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
The install-ansible module installs Ansible with pipx, into an isolated
virtualenv that /usr/bin/python3 cannot import from. Instead run it
through a wrapper that picks the virtualenv interpreter. Falls back to
/usr/bin/python3 for backward compatibility.

Ticket: CFE-4746
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Comment thread promise-types/ansible/ansible_promise.sh Outdated
Comment thread management/run-ansible-playbooks/main.cf Outdated
Comment thread management/run-ansible-playbooks/README.md Outdated
Comment thread management/run-ansible-playbooks/README.md Outdated
Runs Ansible playbooks based on input from Build in Mission Portal or
'cfbs input'.

Ticket: ENT-14364
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
@larsewi
larsewi merged commit 63dbebd into cfengine:master Sep 4, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants