Skip to content

Commit

Permalink
Fixed args rule error for synchronize module (#3158)
Browse files Browse the repository at this point in the history
Co-authored-by: Ajinkya Udgirkar <[email protected]>
  • Loading branch information
audgirka and audgirka authored Mar 9, 2023
1 parent 2c9d740 commit 4af51fc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/playbooks/rule-args-module-pass.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,11 @@
# 'use' is dropped by preprocessing ...
use: "{{ ansible_service_mgr }}"
changed_when: false

- name: "Bug 3152"
ansible.posix.synchronize:
src: .
dest: .
owner: false
group: false
use_ssh_args: true
2 changes: 2 additions & 0 deletions src/ansiblelint/rules/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
"ansible.builtin.service": ["daemon_reload", "use"],
# Avoid: Unsupported parameters for (basic.py) module: cmd. Supported parameters include: _raw_params, _uses_shell, argv, chdir, creates, executable, removes, stdin, stdin_add_newline, strip_empty_ends.
"ansible.builtin.command": ["cmd"],
# https://github.com/ansible/ansible-lint/issues/3152
"ansible.posix.synchronize": ["use_ssh_args"],
}
workarounds_inject_map = {
# https://github.com/ansible/ansible-lint/issues/2824
Expand Down

0 comments on commit 4af51fc

Please sign in to comment.