skip to Main Content

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

Combining values in Ansible – Nginx

I need to create a cronjob for renewal lets encrypt certificates. The final command should looks like this: certbot certonly --no-eff-email -m [email protected] --redirect --agree-tos --non-interactive --standalone -d mydomain.com -d www.mydomain.com -d domain1.mydomain.com -d domain1a.mydomain.com -d domain2.mydomain.com -d domain2a.mydomain.com I…

VIEW QUESTION
Back To Top
Search