Ansible
ansible state
후니옹
2024. 5. 6. 02:43
- command 필요없이 state를 통해서 작성이 가능하다 (가급적 command 지양)
- 예) yum install httpd 설치가 필요한 경우
- name: Redhat(CentOS/Rocky) Install packages
yum:
name:
- httpd
state: present
- present: 설치
- installed: 설치
- latest: 최신 버전 설치
- absent: 제거
- remove: 제거