Feat: add BV_boutique

This commit is contained in:
Bertrand Benjamin 2020-02-24 06:55:28 +01:00
parent 1098ec8d81
commit 6d289231dd
3 changed files with 37 additions and 0 deletions

24
BV_boutique.yml Normal file
View File

@ -0,0 +1,24 @@
---
- hosts: localhost
connection: local
vars_files:
- vars/common.yml
- vars/server.yml
- vars/BV_boutique.yml.yml
tasks:
- include: tasks/ansible.yml
- include: tasks/deb_CLI_packages.yml
- include: tasks/prompt.yml
- include: tasks/users.yml
- include: tasks/sudo.yml
- include: tasks/ssh.yml
- include: tasks/dotfiles.yml
- include: tasks/deb_docker.yml
handlers:
- name: restart sshd
service:
name: sshd
state: restarted

View File

@ -119,6 +119,7 @@
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ me }}"
when: not server
- name: Copy ssh user config
template:
@ -127,6 +128,7 @@
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ deploy_users }}"
when: not server
- name: Copy ssh user config
template:
@ -135,6 +137,7 @@
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ me }}"
when: not server
# Git config
- name: Copy gitconfig
@ -144,3 +147,4 @@
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ me }}"
when: not server

9
vars/BV_boutique.yml Normal file
View File

@ -0,0 +1,9 @@
---
deploy_public_key: id_rsa_manioc.pub
deploy_users:
- username: 'waha'
password: '$6$tQLlZ3lI/NDcT3.C$VCBzrpNxDgOK7b2que2/BnAYWl.zKVugZrQEPxtsq3iWcskEzQ1NvytZRXkB4GCDa/xEohxiodyCaZyFnhxby1'
uid: '999'
group: wheel
groups: sudo