From c88b7532c35f05b2f0ab110dc28d6fa038b6e9ef Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Wed, 18 Jan 2017 08:02:13 +0200 Subject: [PATCH] - Configure sudo using the users role (instead of adding the same tasks to each bootstrap role). --- tests/playbook.yml | 16 +++++++++++++--- tests/requirements.yml | 2 ++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/tests/playbook.yml b/tests/playbook.yml index 10beeb2..55444f3 100644 --- a/tests/playbook.yml +++ b/tests/playbook.yml @@ -1,11 +1,21 @@ --- - hosts: example-openbsd* gather_facts: false - roles: [openbsd-bootstrap] + roles: + - openbsd-bootstrap + - role: users + users: [] + users_use_sudo: True + users_lock_root_ssh: False -- hosts: example-xenial +- hosts: [example-xenial, example-wheezy] gather_facts: false - roles: [debian-bootstrap] + roles: + - debian-bootstrap + - role: users + users: [] + users_use_sudo: True + users_lock_root_ssh: False - hosts: all roles: diff --git a/tests/requirements.yml b/tests/requirements.yml index 70716f6..fccce75 100644 --- a/tests/requirements.yml +++ b/tests/requirements.yml @@ -3,3 +3,5 @@ name: openbsd-bootstrap - src: adarnimrod.debian-bootstrap name: debian-bootstrap +- src: adarnimrod.users + name: users -- GitLab