Skip to content

Conversation

@isbm
Copy link
Member

@isbm isbm commented Dec 5, 2024

This adds a minimal integration with Ansible via cfg.bridge module. Key points:

  • Ansible should be installed as a library on the client machine
  • No support for action modules, only standalone (with main() function inside)
  • It is slow as Python... 😉

Usage is pretty straightforward in actions:

actions:
  module: cfg.bridge
  state:
    my_state:
      opts:
        # Ansible module
        - copy
      args:
        src: /etc/networks
        dest: /tmp/networks.copy
        mode: 0400

This should basically call an Ansible module copy and copy /etc/networks as /tmp/networks.copy destination.

@isbm isbm added the feature New feature or request label Dec 5, 2024
@isbm isbm self-assigned this Dec 5, 2024
@isbm isbm merged commit 9a4b95d into master Dec 6, 2024
3 checks passed
@isbm isbm deleted the isbm-ansible-integration branch December 14, 2024 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants