corrected interfaces file

This commit is contained in:
Tanguy MAZE
2018-12-11 15:26:22 +01:00
parent 13509900fe
commit af72857616
4 changed files with 15 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
- name: "Initialise network config, packages & user tanguy"
hosts: "e3r4p3.42.fr"
hosts: "e1r9p4.42.fr"
become: yes
become_user: root
become_method: su
@@ -16,6 +16,16 @@
dest: "/etc/ssh/"
owner: "root"
group: "root"
- name: "Install sudo"
apt:
name: ['sudo']
update_cache: "yes"
state: "present"
- name: "Add tanguy to sudoers"
user:
name: "tanguy"
groups: "sudo"
append: yes
- name: "Upload public key for tanguy"
authorized_key:
user: "tanguy"
@@ -23,7 +33,4 @@
key: "{{ lookup('file', '/Users/tmaze/.ssh/id_rsa.pub') }}"
- name: "Reboot VM"
reboot:
reboot_timeout: 180
reboot_timeout: 60