ansible only disable service if installed
- shell: dpkg-query -W 'avahi'
ignore_errors: True
register: is_avahi
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
- shell: rpm -q 'avahi'
ignore_errors: True
register: is__avahi
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
- service: name=avahi-daemon enabled=no state=stopped
when: is_avahi|failed
Also in Shell:
- cmd prompt format
- gcloud cd /root permission denied
- ng cli generate component
- search tag git
- tfswitch install
- pip install kivy
- docker build from github repository
- kill all python processes ubuntu
- how to remove unnecessary packages in linux
- Error: ENOSPC: System limit for number of file watchers reached
- linux os update
- Linux Mint reset xfce-panel
- pytype
- delete git origin
- linux move everything in a directory to another directory
- mkdir - p linux
- move all subfolders to parent folder linux
- how to convert ppk to pem in linux
- git diff two commits one file
- random in mac terminal
- how to find the path of a command in linux
- command git message
- shell get location of function
- heroku cli delete app