diff options
Diffstat (limited to 'bootstrap.yml')
-rw-r--r-- | bootstrap.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/bootstrap.yml b/bootstrap.yml new file mode 100644 index 0000000..012ce90 --- /dev/null +++ b/bootstrap.yml @@ -0,0 +1,33 @@ +--- + - name: Bootstrap base systems + hosts: tamriel + remote_user: root + vars: + users: + - login: pawel + groups: ['sudo', 'remote_access', 'docker'] + pubkey: "{{ lookup('file', '/home/pawel/.ssh/id_rsa.pub') }}" + shell: /bin/zsh + - login: ansible_worker + groups: ['sudo', 'remote_access', 'docker'] + pubkey: "{{ lookup('file', '/home/pawel/.ssh/id_rsa.pub') }}" + shell: /bin/bash + roles: + - base_users + tasks: + - name: zsh + apt: name=zsh + #- name: Allow paswordless sudo + # lineinfile: + # dest: /etc/sudoers + # state: present + # regexp: "^%sudo" + # line: "%sudo ALL=(ALL) NOPASSWD: ALL" + # validate: '/usr/sbin/visudo -cf %s' + - file: + path: /home/pawel/.zshrc + owner: pawel + group: pawel + state: touch + mode: 0660 + |