Commit 3c7799f0 authored by Jean-Michel Elyn's avatar Jean-Michel Elyn
Browse files

Change background according to host group (canary, early_bird, default, dinosaur, fossil)

parent 8217f22c
Pipeline #3257713 passed with stage
in 21 seconds
- name: Load global variables
debug:
msg: Loaded global variables
\ No newline at end of file
- name: Set special snapshot_group
set_fact:
snapshot_group: '{{ item.string }}'
when: inventory_hostname in groups[ item.group ]
loop:
- { group: all, string: default }
- { group: fossil, string: fossil }
- { group: dinosaur, string: dinosaur }
- { group: early_bird, string: early_bird }
- { group: canary, string: canary }
......@@ -2,4 +2,4 @@
# File managed by ansible
[greeter]
background=/usr/share/backgrounds/acc/Elarun_2560x1600.png
background=/usr/share/backgrounds/acc/background_default.png
......@@ -21,7 +21,11 @@
src: '{{ item.src }}'
dest: '{{ item.dest }}'
loop:
- { src: lightdm/Elarun_2560x1600.png, dest: /usr/share/backgrounds/acc }
- { src: /nfs/cs-ccr-accadm/opt/accadm/ansible_files/backgrounds/cs8/background_canary.png, dest: /usr/share/backgrounds/acc/ }
- { src: /nfs/cs-ccr-accadm/opt/accadm/ansible_files/backgrounds/cs8/background_default.png, dest: /usr/share/backgrounds/acc/ }
- { src: /nfs/cs-ccr-accadm/opt/accadm/ansible_files/backgrounds/cs8/background_dinosaur.png, dest: /usr/share/backgrounds/acc/ }
- { src: /nfs/cs-ccr-accadm/opt/accadm/ansible_files/backgrounds/cs8/background_early_bird.png, dest: /usr/share/backgrounds/acc/ }
- { src: /nfs/cs-ccr-accadm/opt/accadm/ansible_files/backgrounds/cs8/background_fossil.png, dest: /usr/share/backgrounds/acc/ }
- { src: lightdm/lightdm-gtk-greeter.conf, dest: /etc/lightdm/ }
- name: Set default target
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment