This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Restart polkit service | |
listen: restart-polkit | |
ansible.builtin.service: | |
name: polkit | |
state: restarted | |
when: "'container' not in ansible_virtualization_tech_guest" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# OS: Wrapper for os-finger that supports {if os.debian}..{endif} | |
{% set osfinger = salt.grains.get('osfinger', '') %} | |
{% set os = { | |
'debian': 'Debian' in osfinger, | |
'ubuntu': 'Ubuntu' in osfinger, | |
} %} |