This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
сервис_ansible [2022/03/11 10:24] val [Пример 3] |
сервис_ansible [2022/05/26 15:46] val [Пример 1] |
||
---|---|---|---|
Line 143: | Line 143: | ||
- name: Add Docker's official GPG key | - name: Add Docker's official GPG key | ||
apt_key: | apt_key: | ||
- | url: https://download.docker.com/linux/debian/gpg | + | # url: https://download.docker.com/linux/debian/gpg |
+ | # url: https://download.docker.com/linux/ubuntu/gpg | ||
state: present | state: present | ||
- name: Add Docker's repository into sources list | - name: Add Docker's repository into sources list | ||
apt_repository: | apt_repository: | ||
# repo: deb [arch=amd64] https://download.docker.com/linux/debian buster stable | # repo: deb [arch=amd64] https://download.docker.com/linux/debian buster stable | ||
- | repo: deb [arch=amd64] https://download.docker.com/linux/debian bullseye stable | + | # repo: deb [arch=amd64] https://download.docker.com/linux/debian bullseye stable |
+ | # repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable | ||
state: present | state: present | ||
- name: Install Docker | - name: Install Docker | ||
- | apt: pkg=docker-ce state=present update_cache=true | + | apt: |
+ | pkg: | ||
+ | - docker-ce | ||
+ | - docker-ce-cli | ||
+ | - containerd.io | ||
+ | - docker-compose-plugin | ||
+ | state: present | ||
+ | update_cache: true | ||
</code><code> | </code><code> | ||
gate# ansible-playbook provision_docker.yml | gate# ansible-playbook provision_docker.yml | ||
Line 229: | Line 238: | ||
# - aaa authentication login default local | # - aaa authentication login default local | ||
# - aaa authorization exec default local | # - aaa authorization exec default local | ||
+ | # - username root privilege 15 secret cisco | ||
+ | |||
# - radius-server host server auth-port 1812 acct-port 1813 | # - radius-server host server auth-port 1812 acct-port 1813 | ||
# - radius-server key testing123 | # - radius-server key testing123 | ||
# - aaa authentication login default group radius enable | # - aaa authentication login default group radius enable | ||
# - aaa authorization exec default group radius none | # - aaa authorization exec default group radius none | ||
+ | |||
# - tacacs-server host server | # - tacacs-server host server | ||
# - tacacs-server key tackey123 | # - tacacs-server key tackey123 | ||
Line 238: | Line 250: | ||
# - aaa authorization exec default group tacacs+ none | # - aaa authorization exec default group tacacs+ none | ||
# - aaa accounting commands 15 default start-stop group tacacs+ | # - aaa accounting commands 15 default start-stop group tacacs+ | ||
+ | |||
# - aaa authentication dot1x default group radius | # - aaa authentication dot1x default group radius | ||
## - aaa accounting dot1x default start-stop group radius | ## - aaa accounting dot1x default start-stop group radius | ||
Line 420: | Line 433: | ||
</code><code> | </code><code> | ||
# ansible-playbook -f 5 nodes.yml | # ansible-playbook -f 5 nodes.yml | ||
+ | |||
+ | ИЛИ | ||
+ | |||
+ | # ansible-playbook -f 5 conf/ansible/roles/nodes.yml | ||
</code> | </code> |