To run a shell command in all hosts, you can use the module name raw
and provide shell command to module args.
Example:
- To list all CPU model name of hosts
$ ansible all -m raw -a "cat /proc/cpuinfo | grep 'model name'"
To run a shell command in all hosts, you can use the module name raw
and provide shell command to module args.
Example:
$ ansible all -m raw -a "cat /proc/cpuinfo | grep 'model name'"
Probability in migration new services to prevent traffic flood
#TIL : Improve apt package manager speed by changing source list mirrors
#TIL : Improve apt package manager speed by changing source list mirrors
I learned on 2019-04-03 about apt, devops, packagemanager
#TIL : Build lightweight image by using multistage
#TIL : Build lightweight image by using multistage
I learned on 2018-02-23 about devops, docker
#TIL : Ansible running host pattern
#TIL : Ansible running host pattern
I learned on 2018-01-22 about ansible, devops
2022
Weighted Round Robin : Scheduling Algorithm
#TIL : Becareful on using port mapping of Docker in Development
#TIL : Becareful on using port mapping of Docker in Development
I learned on 2022-03-17 about docker, security
#TIL : Using extra hosts to add custom ip of hostnames to Docker container
#TIL : Using extra hosts to add custom ip of hostnames to Docker container
I learned on 2022-03-16 about docker, networking