Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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
Comment

PREVIOUS NEXT
Code Example
Shell :: move a branch back in git 
Shell :: windows 10 direct inbound port to another device 
Shell :: how to get rid of the start up screen on your pyinstaller .exe file 
Shell :: cordova admob 
Shell :: repro blender ubuntu 18.04 
Shell :: shell Edited By King Deface 
Shell :: verify in core compressor with swap backend VM_PAGER_COMPRESSOR_WITH_SWAP 
Shell :: pom version increment linux 
Shell :: where to find the zipped folder from google drive in ubuntu 
Shell :: app to see git branches in ubuntu 
Shell :: flatpak list themes 
Shell :: failed to write object git pull 
Shell :: bash silent errors 
Shell :: logstash automatic config reload 
Shell :: telegram new version for xfce manajaro 
Shell :: git-revision-webpack-plugin 
Shell :: heroku multiple remotes 
Shell :: mac copy big file into clipboard 
Shell :: how to install bokeh version 2.4.1 rather than 2.4.2 
Shell :: anbox linux 
Shell :: where are snap files installed in ubuntu 
Shell :: windows 11 icons for tortoise git 
Shell :: zsh command not found scp 
Shell :: tesract persian code 
Shell :: add quotes to column and replace with comma 
Shell :: cara stop running docker 
Shell :: install dynamic library gd2 
Shell :: arch linux deepin compositor 
Shell :: how to source scripts in same folder bash 
Shell :: oh-my-posh.psm1 porque la ejecución de scripts está deshabilitada en este sistema 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =