skip to Main Content

Call variable in Ansible – Nginx

Apologies for this simple question, but I tried various approach without success. This is my vars file --- preprod: name: nginx prod: name: apache I am trying to pass the value of name based on the environment name user provides…

VIEW QUESTION

Weird Ansible issue – CentOS

When I use two consecutive shell tasks with When condition "when: ansible_distribution == 'Amazon' and when: ansible_distribution == 'CentOS'" its fails to register variable(attributes) of first tasks If I disable task with "when: ansible_distribution == 'CentOS'" it works perfectly. here…

VIEW QUESTION

ansible – cant set wallpaper in xfce4 with xfconf "failed to init libxfconf " – Debian

I try to set a wallpaper on Debian Systems with ansible on xfce4 desktops. For this I looked up the official documentation: https://docs.ansible.com/ansible/latest/collections/community/general/xfconf_module.html My Task: - name: set wallpaper become_user: odin xfconf: channel: "xfce4-desktop" property: "/backdrop/screen0/{{item}}/image-path" value_type: "string" value: ['/usr/share/backgrounds/xfce/802192.jpg']…

VIEW QUESTION
Back To Top
Search