fixed use of deprecated (now invalid) syntax (ugh); added few more deps

local
Glenn K. Lockwood 7 years ago
parent 3368d28ae5
commit 201129a5e7
  1. 8
      roles/common/tasks/main.yml

@ -23,7 +23,7 @@
dest=/etc/hosts dest=/etc/hosts
line="{{ item.ip }}{{'\t'}}{{ item.name }}.local{{'\t'}}{{ item.name }}" line="{{ item.ip }}{{'\t'}}{{ item.name }}.local{{'\t'}}{{ item.name }}"
state=present state=present
with_items: etc_hosts_contents with_items: "{{etc_hosts_contents}}"
### Set timezone ### Set timezone
- name: set /etc/timezone to America/Los_Angeles - name: set /etc/timezone to America/Los_Angeles
@ -61,6 +61,8 @@
update_cache=yes update_cache=yes
with_items: with_items:
- vim - vim
- git
- python-pip
### Create user accounts ### Create user accounts
- name: create users - name: create users
@ -70,14 +72,14 @@
groups="{{ item.groups }}" groups="{{ item.groups }}"
uid="{{ item.uid }}" uid="{{ item.uid }}"
state=present state=present
with_items: create_users with_items: "{{ create_users }}"
tags: [ 'users' ] tags: [ 'users' ]
- name: install ssh pubkeys for new users - name: install ssh pubkeys for new users
authorized_key: user="{{ item.name }}" authorized_key: user="{{ item.name }}"
key="{{ item.pubkey }}" key="{{ item.pubkey }}"
state=present state=present
with_items: create_users with_items: "{{ create_users }}"
tags: [ 'users' ] tags: [ 'users' ]
### TODO: disable the 'pi' user somehow ### TODO: disable the 'pi' user somehow

Loading…
Cancel
Save