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

Feat ansible #277

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

vanisrikanithi
Copy link
Contributor

@vanisrikanithi vanisrikanithi commented Jan 12, 2025

Ansible Playbook, Adhoc, Vault go-conversion:
Ansible Jenkins Trace:
demo_ansible.json

go run main.go jenkinsjson --downgrade ~/go/demo_ansible.json

Harness Test Pipeline here.

Ansible Playbook Step:

- step:
    identifier: ansibleplaybookb8e0a2
    name: Ansible_Playbook
    spec:
      image: plugins/ansible
      settings:
        become: "false"
        become_user: root
        check: "false"
        disable_host_key_checking: "true"
        dynamic_inventory: "false"
        extra_vars: ""
        extras: --timeout=30
        forks: "5"
        host_key_checking: "false"
        installation: ""
        inventory: inventory
        inventory_content: ""
        limit: ""
        mode: playbook
        playbook: playbook.yml
        private_key: ""
        skip_tags: ""
        start_at_task: ""
        sudo: "false"
        sudo_user: ""
        tags: ""
        vault_id: ""
        vault_tmp_path: /tmp
    timeout: ""
    type: Plugin

Ansible Adhoc step:

- step:
    identifier: ansibleadhoc4eb052
    name: Ansible_Adhoc
    spec:
      image: plugins/ansible
      settings:
        become: "false"
        become_user: root
        dynamic_inventory: "false"
        extra_vars: ""
        extras: --timeout=30
        forks: "5"
        host_key_checking: "false"
        hosts: all
        installation: ""
        inventory: inventory
        inventory_content: |-
          [all]
          localhost ansible_connection=local
        mode: adhoc
        module: ping
        module_args: ""
        private_key: ""
        vault_credentials_key: ""
        vault_tmp_path: /tmp
    timeout: ""
    type: Plugin

Ansible Vault Step:

- step:
    identifier: ansiblevault60a60b
    name: Ansible_Vault
    spec:
      image: plugins/ansible
      settings:
        action: encrypt
        content: ""
        input: content_to_encrypt.txt
        installation: ""
        mode: vault
        output: encrypted_content.txt
        vault_credentials_key: test-vault-id
        vault_tmp_path: /tmp
    timeout: ""
    type: Plugin

@Ompragash
Copy link
Member

@vanisrikanithi can you the conversion for ansibleVault and ansibleAdhoc as well?

@vanisrikanithi
Copy link
Contributor Author

@Ompragash Updated the go-conversion for all three features(Playbook, Adhoc, Vault). Could you please Review the PR and merge if everything looks fine??

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants