Izveden refactor iz taskov v role
This commit is contained in:
parent
747438dedf
commit
a35460a57b
317 changed files with 2761 additions and 50 deletions
4
roles/gns3/tasks/main.yml
Normal file
4
roles/gns3/tasks/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
- import_tasks: main_win.yml
|
||||
when: ansible_connection == 'winrm'
|
||||
- import_tasks: main_lin.yml
|
||||
when: ansible_connection == 'ssh'
|
15
roles/gns3/tasks/main_lin.yml
Normal file
15
roles/gns3/tasks/main_lin.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
- name: Add GNS3 repository
|
||||
apt_repository:
|
||||
repo: ppa:gns3/ppa
|
||||
state: present
|
||||
update_cache: True
|
||||
validate_certs: False
|
||||
- name: Install gns3 server
|
||||
ansible.builtin.apt:
|
||||
name: gns3-server
|
||||
state: latest
|
||||
- name: Install gns3 GUI
|
||||
ansible.builtin.apt:
|
||||
name: gns3-gui
|
||||
state: latest
|
||||
|
4
roles/gns3/tasks/main_win.yml
Normal file
4
roles/gns3/tasks/main_win.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
- name: GNS3 na Windows ne deluje
|
||||
debug:
|
||||
msg: "GNS3 na Windows zaenkrat ne vklapljamo"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue