본문 바로가기

ansible5

[Ansible] module - user https://docs.ansible.com/ansible/latest/collections/ansible/builtin/user_module.html ansible.builtin.user module – Manage user accounts — Ansible Community DocumentationAnsible Community Documentation Ansible ansible.builtin.user module – Manage user accounts Note This module is part of ansible-core and included in all Ansible installations. In most cases, you can use the short module name user .. 2024. 5. 21.
[Ansible] error - ERROR! couldn't resolve module/action 'mount' ansible playbook에 mount 모듈을 선언했는데     위와 같은 에러가 발생했다.     ansible-galaxy collection install ansible.posix 명령어를 입력해서 mount 모듈을 설치해준다.     모듈 설치후 palybook 체크 성공     자세한 내용은 아래의 글을 참고하였음 https://stackoverflow.com/questions/66335800/error-couldnt-resolve-module-action-this-often-indicates-a-misspelling-miss ERROR! couldn't resolve module/action . This often indicates a misspelling, missing collectio.. 2024. 5. 21.
[Ansible] module - lineinfile (멱등성) 멱등성 : 연산을 여러번 적용해도 달라지지 않는 성질    위와 내용이 있는 파일이 있다    test 파일에 리디렉션으로 내용을 추가   내용이 추가 되었다.   echo명령어의 출력 데이터를 test.txt 파일에 리디렉션하는명령어를 다시 실행하면은 같은 내용이 또 추가된다.     이번에는 ansible 명령어를 사용해서 내용을 test.txt 파일에 추가  ps. ansible의 shell 모듈을  사용하면은 같은 내용이라도 중복 저장된다고 한다.---> ansible의 특징인 멱등성이 적용되지 않는다.  내용이 정상적으로 추가되었다.  같은 내용을 추가하려고 하면은 변경 사항이 없다는 결과를 출력    같은 내용이 중복으로 저장되지 않았다.     결론ansible "lineinfile" 모듈을.. 2024. 5. 16.
[Ansible] module https://docs.ansible.com/ansible/2.9/modules/list_of_all_modules.html All modules — Ansible Documentation docs.ansible.com  ansible에서는 module을 사용한다고 한다. ---> ansible을 이용해 node 컴퓨터에 실행할 명령어를 실행시키기 위한프로그램인거 같다. 2024. 5. 13.
[Ansible] description https://en.wikipedia.org/wiki/Ansible_(software) Ansible (software) - WikipediaFrom Wikipedia, the free encyclopedia Open-source software platform for remote configuring and managing computers Ansible is a suite of software tools that enables infrastructure as code. It is open-source and the suite includes software provisioning, confen.wikipedia.org   ansible은 IaC(infrastructure as code)를 가능하게 해.. 2024. 5. 13.