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

ARI inline replace functionality is overwriting the comment line, #247

Open
justjais opened this issue Jun 20, 2024 · 0 comments
Open

ARI inline replace functionality is overwriting the comment line, #247

justjais opened this issue Jun 20, 2024 · 0 comments

Comments

@justjais
Copy link
Contributor

justjais commented Jun 20, 2024

I've found one bug with ARI inline replace, where ARI inline replace functionality is overwriting the comment line, ref:
Input play:

- tags:
    - freeipa_server
  block:

    - name: Check that the hostname has two-levels
      ansible.builtin.assert:
        that: ansible_facts["nodename"].split(".") | length >= 3
@@ -26,7 +25,6 @@
        ipaserver_realm: "{{ freeipa_server__realm }}"
        ipaserver_setup_firewalld: false

    # we need to use shell instead of command for the kerberos ticket to work
    - name: Kinit
      ansible.builtin.shell: echo '{{ freeipa_server__ipa_admin_password }}' | kinit

Output play:

- tags:
    - freeipa_server
  block:
    - name: Check that the hostname has two-levels
      ansible.builtin.assert:
        that: ansible_facts["nodename"].split(".") | length >= 3
@@ -26,7 +25,6 @@
        ipaserver_realm: "{{ freeipa_server__realm }}"
        ipaserver_setup_firewalld: false

    - name: Kinit
      ansible.builtin.shell: echo '{{ freeipa_server__ipa_admin_password }}' | kinit

# we need to use shell instead of command for the kerberos ticket to work, comment line is not being copied to Output play which isn't expected.
Playbook where issue is observed, ref

@justjais justjais changed the title ARI inline replace functionaity is overwritting the comment line ARI inline replace functionality is overwriting the comment line, Jun 20, 2024
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

No branches or pull requests

1 participant