summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/rule-no-prompting.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/rule-no-prompting.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/rule-no-prompting.yml')
-rw-r--r--examples/playbooks/rule-no-prompting.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/examples/playbooks/rule-no-prompting.yml b/examples/playbooks/rule-no-prompting.yml
new file mode 100644
index 0000000..5f74303
--- /dev/null
+++ b/examples/playbooks/rule-no-prompting.yml
@@ -0,0 +1,27 @@
+---
+- name: Fixture for testing no-prompting rule, lines 5,17
+ hosts: all
+ vars_prompt:
+ - name: username
+ prompt: What is your username?
+ private: false
+
+ - name: password
+ prompt: What is your password?
+
+ tasks:
+ - name: Pause for 5 minutes to build app cache
+ ansible.builtin.pause:
+ minutes: 5 # should not trigger because minutes is mentioned
+
+ - name: A helpful reminder of what to look out for post-update
+ ansible.builtin.pause:
+ # should trigger no-prompting as neither seconds/minutes are mentioned
+ prompt: "Make sure org.foo.FooOverload exception is not present"
+
+- name: Fixture for testing if no vars_prompt is provided, lines 34-36
+ hosts: all
+ tasks:
+ - name: Pause for 5 minutes to build app cache
+ ansible.builtin.pause:
+ minutes: 5 # should not trigger because minutes is mentioned