summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/fqcn.transformed.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:06:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:06:49 +0000
commit2fe34b6444502079dc0b84365ce82dbc92de308e (patch)
tree8fedcab52bbbc3db6c5aa909a88a7a7b81685018 /examples/playbooks/fqcn.transformed.yml
parentInitial commit. (diff)
downloadansible-lint-2fe34b6444502079dc0b84365ce82dbc92de308e.tar.xz
ansible-lint-2fe34b6444502079dc0b84365ce82dbc92de308e.zip
Adding upstream version 6.17.2.upstream/6.17.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'examples/playbooks/fqcn.transformed.yml')
-rw-r--r--examples/playbooks/fqcn.transformed.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/playbooks/fqcn.transformed.yml b/examples/playbooks/fqcn.transformed.yml
new file mode 100644
index 0000000..2b758bc
--- /dev/null
+++ b/examples/playbooks/fqcn.transformed.yml
@@ -0,0 +1,16 @@
+---
+- name: FQCN transform test file
+ hosts: localhost
+ tasks:
+ - name: Rewrite shell to ansible.builtin.shell via the fqcn[action-core] transform # noqa: command-instead-of-shell
+ ansible.builtin.shell: echo This rule should get matched by the fqcn[action-core] rule
+ changed_when: false
+ - name: Rewrite openssh_keypair to community.crypto.openssh_keypair via the fqcn[action] transform
+ community.crypto.openssh_keypair:
+ path: /tmp/supersecret
+ - name: Rewrite ansible.builtin.synchronize to ansible.posix.synchronize via the fqcn[canonical] transform
+ ansible.posix.synchronize:
+ src: dummy
+ dest: dummy2
+ owner: false
+ group: false