Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bridge module for the integration with Ansible #51

Merged
merged 7 commits into from
Dec 6, 2024

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.

1 participant