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

Deleting commented code for ansible playbook #14

Open
Ujifman opened this issue Jul 21, 2023 · 0 comments
Open

Deleting commented code for ansible playbook #14

Ujifman opened this issue Jul 21, 2023 · 0 comments

Comments

@Ujifman
Copy link

Ujifman commented Jul 21, 2023

Hello.

This is example of code of Ansible playbook

- hosts: any.host
  gather_facts: no
  remote_user: root
  roles:
  - rsa-upd
  - check-users
  - ssh-authorization-keys
  - ssh-daemon-setup


# - hosts: some.host
#   gather_facts: yes
#   remote_user: root
#   roles:
#   - system-checks
#   - distrib-sync
#   - db-pak-update

If I use autoformat, commented part will be deleted.
But if it will not be list in root element, commented code is OK.

expexted behaviour: commented code is not deleted

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