|
| 1 | +# Ansible Playbook Deployment output: |
| 2 | + |
| 3 | +```bash |
| 4 | +tjann@fedora:~/DevOps-Course/ansible$ ansible-playbook playbooks/dev/main.yaml | tail -n 50 |
| 5 | +[WARNING]: Platform linux on host yandex_vm is using the discovered Python |
| 6 | +interpreter at /usr/bin/python3.10, but future installation of another Python |
| 7 | +interpreter could change the meaning of that path. See |
| 8 | +https://docs.ansible.com/ansible- |
| 9 | +core/2.18/reference_appendices/interpreter_discovery.html for more information. |
| 10 | + |
| 11 | +PLAY [install Docker] ********************************************************** |
| 12 | + |
| 13 | +TASK [Gathering Facts] ********************************************************* |
| 14 | +ok: [yandex_vm] |
| 15 | + |
| 16 | +TASK [docker : Install Docker & compose] *************************************** |
| 17 | +included: /home/tjann/DevOps-Course/ansible/roles/docker/tasks/install_docker.yml for yandex_vm |
| 18 | + |
| 19 | +TASK [docker : Install prerequisites] ****************************************** |
| 20 | +ok: [yandex_vm] |
| 21 | + |
| 22 | +TASK [docker : Add Docker official GPG key] ************************************ |
| 23 | +ok: [yandex_vm] |
| 24 | + |
| 25 | +TASK [docker : Add Docker repository] ****************************************** |
| 26 | +ok: [yandex_vm] |
| 27 | + |
| 28 | +TASK [docker : Update package cache] ******************************************* |
| 29 | +changed: [yandex_vm] |
| 30 | + |
| 31 | +TASK [docker : Install Docker] ************************************************* |
| 32 | +ok: [yandex_vm] |
| 33 | + |
| 34 | +TASK [docker : Ensure Docker is running] *************************************** |
| 35 | +ok: [yandex_vm] |
| 36 | + |
| 37 | +TASK [docker : Install Docker Compose] ***************************************** |
| 38 | +included: /home/tjann/DevOps-Course/ansible/roles/docker/tasks/install_compose.yml for yandex_vm |
| 39 | + |
| 40 | +TASK [docker : Install Docker Compose] ***************************************** |
| 41 | +ok: [yandex_vm] |
| 42 | + |
| 43 | +PLAY RECAP ********************************************************************* |
| 44 | +yandex_vm : ok=10 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 |
| 45 | +``` |
| 46 | +# Inventory Details |
| 47 | + |
| 48 | +## Inventory list |
| 49 | + |
| 50 | +```bash |
| 51 | +tjann@fedora:~/DevOps-Course/ansible$ ansible-inventory -i inventory/default_aws_ec2.yml --list |
| 52 | +{ |
| 53 | + "_meta": { |
| 54 | + "hostvars": { |
| 55 | + "yandex_vm": { |
| 56 | + "ansible_host": "89.169.129.233", |
| 57 | + "ansible_ssh_private_key_file": "~/.ssh/yandex_vm", |
| 58 | + "ansible_user": "tjann" |
| 59 | + } |
| 60 | + } |
| 61 | + }, |
| 62 | + "all": { |
| 63 | + "children": [ |
| 64 | + "ungrouped" |
| 65 | + ] |
| 66 | + }, |
| 67 | + "ungrouped": { |
| 68 | + "hosts": [ |
| 69 | + "yandex_vm" |
| 70 | + ] |
| 71 | + } |
| 72 | +} |
| 73 | +``` |
| 74 | + |
| 75 | +## Inventory Structure |
| 76 | + |
| 77 | +```bash |
| 78 | +tjann@fedora:~/DevOps-Course/ansible$ ansible-inventory -i inventory/default_aws_ec2.yml --graph |
| 79 | +@all: |
| 80 | + |--@ungrouped: |
| 81 | + | |--yandex_vm |
| 82 | +``` |
| 83 | + |
| 84 | + |
0 commit comments