[defaults]
inventory = inventory
[privilege_escalation]
become = true
[dockers]
docker1.example.com ansible_host=192.168.10.10 ansible_if=ens160 ps1_color=31
docker2.example.com ansible_host=192.168.10.20 ansible_if=ens160 ps1_color=32
<play.yml>
name: 환경 설정
hosts: all
tasks:
name: SELinux 기능을 permissive로 변경하기
selinux:
policy: targeted
state: permissive
name: 방화벽 내리기
service:
name: firewalld
state: stopped
enabled: no
name: 패키지 설치
yum:
name:
- gnome-tweaks
- git
state: present
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
export PS1='[\e[31;1m][\u@\h[\e[33;1m] \w]$ [\e[m]'
alias c='clear'
alias vi='/usr/bin/vim'
{% if inventory_hostname == 'docker1.example.com' %}
alias code='code --no-sandbox --user-data-dir=/root/vscode'
alias vscode='code'
alias ans='ansible'
alias anp='ansible-playbook'
alias anpchk='ansible-playbook --syntax-check'
alias anx='ansible-galaxy'
alias anv='ansible-vault'
alias ande="ansible-doc p' | more"
{% endif %}
< bashrc.j2>
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
export PS1='[\e[{{ ps1_color }};1m][\u@\h[\e[33;1m] \w]$ [\e[m]'
alias c='clear'
alias vi='/usr/bin/vim'
{% if inventory_hostname == 'docker1.example.com' %}
alias code='code --no-sandbox --user-data-dir=/root/vscode'
alias vscode='code'
alias ans='ansible'
alias anp='ansible-playbook'
alias anpchk='ansible-playbook --syntax-check'
alias anx='ansible-galaxy'
alias anv='ansible-vault'
alias ande="ansible-doc p' | more"
{% endif %}
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
export PS1='[\e[{{ ps1_color }};1m][\u@\h[\e[33;1m] \w]$ [\e[m]'
alias c='clear'
alias vi='/usr/bin/vim'
{% if inventory_hostname == 'docker1.example.com' %}
alias code='code --no-sandbox --user-data-dir=/root/vscode'
alias vscode='code'
alias ans='ansible'
alias anp='ansible-playbook'
alias anpchk='ansible-playbook --syntax-check'
alias anx='ansible-galaxy'
alias anv='ansible-vault'
alias ande="ansible-doc p' | more"
{% endif %}
2장
sh get-docket~
6/13
컨테이너 서비스 방식과 기존의 서비스 동작 방식과의 차이점
3장
10/13
docker container run --name webserver -d -p 80:80 ngnix
https
docker pull gcr 8/136 2개
11/136 [참고] docker image inspect
Config.Cmd
docker
**
16/135
지정된 이미지
17/136
빨간색, 숫자
최근에드 패스워드 주는거 막음
대신 stdin으로 줌(좋은 방법은 아님) |: 빨간색
bmV3amluMTA6KipneXUxMDAx