Update page '6-12-2023 Cohort 1 Sync Notes'
@@ -34,12 +34,15 @@ Ansible magic variables: https://docs.ansible.com/ansible/latest/reference_appen
|
|||||||
* Explained that `become: true` gives extra privileges to the tasks that run under that play/task, and make sure to stop using it once you're done using administrative ansible modules and can go back to being a regular user.
|
* Explained that `become: true` gives extra privileges to the tasks that run under that play/task, and make sure to stop using it once you're done using administrative ansible modules and can go back to being a regular user.
|
||||||
* You can use block to group tasks by a `when` condition or a `become` command
|
* You can use block to group tasks by a `when` condition or a `become` command
|
||||||
* How to dump ansible variables in a playbook:
|
* How to dump ansible variables in a playbook:
|
||||||
|
|
||||||
```
|
```
|
||||||
... tasks above here
|
... tasks above here
|
||||||
register: pricer_container
|
register: pricer_container
|
||||||
- error:
|
- error:
|
||||||
msg: "{{ pricer_container }}"
|
msg: "{{ pricer_container }}"
|
||||||
```
|
```
|
||||||
|
|
||||||
* All tasks return some values: https://docs.ansible.com/ansible/2.9/reference_appendices/common_return_values.html#common-return-values
|
* All tasks return some values: https://docs.ansible.com/ansible/2.9/reference_appendices/common_return_values.html#common-return-values
|
||||||
* docker_container returns some information about the container: https://docs.ansible.com/ansible/2.9/modules/docker_container_module.html#return-values
|
* docker_container returns some information about the container: https://docs.ansible.com/ansible/2.9/modules/docker_container_module.html#return-values
|
||||||
* Next step is to figure out how to extract the container name so we can use it later to stop and re-start the container with systemd, then do it again once selenium is installed
|
* Next step is to figure out how to extract the container name so we can use it later to stop and re-start the container with systemd, then do it again once selenium is installed
|
||||||
|
1704h: ended
|
||||||
Reference in New Issue
Block a user