Ansible
I create playbook file "docker_install.yml" to install docker-ce. --- - name: Install Docker hosts: grp_node tasks: - name: Install package needed for docker-ce yum: name: '{{ item }}' state: installed with_items: - "yum-utils" - "device-m…
Please see this url. https://github.com/ansible/awx/blob/devel/INSTALL.md I have already installed docker-ce. [root@cent7devops installer]# docker version Client: Version: 18.06.0-ce API version: 1.38 Go version: go1.10.3 Git commit: 0ffa8…
about ansible version check version. # ansible --version ansible 2.6.1 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module …
To create user repeatedly, ansible is useful. I create playbook for password authorization. [root@cent7devops ansible-test]# cat ./hosts [grp_node] node01 ansible_host=172.16.10.111 ansible_user=root node02 ansible_host=172.16.10.112 ansib…
I execute following command to specify inventory file "hosts" and vault password file "vault.txt". By preparing ansible.cfg, I don't have to specify inventory file path and vault password file path every time. [root@cent7devops ansible-tes…
When we use ansible, we would like to encrypt secret information like password. Ansbile have ansible-vault command to encrypt. I try ansible-vault command. I create inventory file. [root@cent7devops ansible-test]# cat hosts [test] node01 a…
[root@localhost ~]# yum install epel-release *snip* Installed: epel-release.noarch 0:7-9 Complete! [root@localhost ~]# [root@localhost ~]# yum --enablerepo=epel install ansible *snip* Installed: ansible.noarch 0:2.5.2-1.el7 Dependency Inst…
I installed ansible on docker container. [root@localhost ~]# docker run -d --name ansible centos:7 tail -f /dev/null 89fc39c2cbb0de2fe9f520ccfbb7cd43fa77ed62632d7479ab3e9779b73de258 [root@localhost ~]# docker ps CONTAINER ID IMAGE COMMAND …