]> git.lttng.org Git - lttng-ci.git/commitdiff
ansible: Add option to skip site playbook when snapshotting rootnode
authorKienan Stewart <kstewart@efficios.com>
Tue, 10 Dec 2024 15:25:08 +0000 (10:25 -0500)
committerKienan Stewart <kstewart@efficios.com>
Tue, 10 Dec 2024 15:25:08 +0000 (10:25 -0500)
Change-Id: I2346f89247f6208b0121fbc9b279614c834200e8
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
automation/ansible/playbooks/snapshot-rootnode.yml

index c9a1f1a3f461900d56d5f2df771d168a814a6bc1..515d4e445891b492d6607f6ce1d3d0f3403d6ab3 100644 (file)
@@ -7,6 +7,7 @@
     job_abort: false
     # Set to false when taking the first snapshot of a new rootnode
     revert_before: true
+    run_site_playbook: true
     snapshot_name: 'base-configuration'
     upgrade: false
     wait_for_changes: true
@@ -15,6 +16,7 @@
         job_wait_to_end: "{{job_wait_to_end}}"
         job_abort: "{{job_abort}}"
         revert_before: "{{revert_before}}"
+        run_site_playbook: "{{run_site_playbook}}"
         snapshot_name: "{{snapshot_name}}"
         target_rootnode: "{{inventory_hostname}}"
         upgrade: "{{upgrade}}"
@@ -96,7 +98,7 @@
 # `inventory_hostname in groups.node_standalone` is false.
 - name: Run site.yml
   import_playbook: '../site.yml'
-  when: inventory_hostname in groups.node_standalone
+  when: inventory_hostname in groups.node_standalone and run_site_playbook
 
 - name: Cleanup and snapshot
   hosts: node_standalone
This page took 0.026058 seconds and 4 git commands to generate.