Skip to content
Snippets Groups Projects
Commit e1272e21 authored by antoine.blancy's avatar antoine.blancy
Browse files

Removed redundant tasks

parent e2513937
No related branches found
No related tags found
No related merge requests found
- name: curl
hosts: h1
roles:
- role: 'roles/common'
become: yes
vars:
addr: 10.0.1.2
......@@ -11,3 +9,6 @@
- name: install curl
apt:
name: curl
roles:
- role: 'roles/hosts'
- role: 'roles/common'
\ No newline at end of file
- name: nginx
hosts: h2
roles:
- role: 'roles/common'
become: yes
vars:
my_cool_greeting: HEHEHELOOLOLOLO
......@@ -17,7 +15,9 @@
src: index.html
dest: /var/www/html/index.html
notify: nginx-restarter
roles:
- role: 'roles/hosts'
- role: 'roles/common'
handlers:
- name: nginx-restarter
service:
......
......@@ -17,8 +17,6 @@
src: router_2
dest: /etc/network/interfaces.d/eth2
become: true
- name: reboot
reboot:
- ansible.posix.sysctl:
name: net.ipv4.ip_forward
value: 1
......@@ -26,3 +24,5 @@
state: present
reload: yes
become: yes
roles:
- role: 'roles/common'
\ No newline at end of file
- name: interface config
template:
src: eth1
dest: /etc/network/interfaces.d/eth1
become: true
- name: reboot
reboot:
\ No newline at end of file
- name: interface config
template:
src: eth1
dest: /etc/network/interfaces.d/eth1
become: true
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment