From 6d289231dd89dbdfaf8f4bac224c19d1cc0124b0 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Mon, 24 Feb 2020 06:55:28 +0100 Subject: [PATCH] Feat: add BV_boutique --- BV_boutique.yml | 24 ++++++++++++++++++++++++ tasks/dotfiles.yml | 4 ++++ vars/BV_boutique.yml | 9 +++++++++ 3 files changed, 37 insertions(+) create mode 100644 BV_boutique.yml create mode 100644 vars/BV_boutique.yml diff --git a/BV_boutique.yml b/BV_boutique.yml new file mode 100644 index 0000000..fc8e67f --- /dev/null +++ b/BV_boutique.yml @@ -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 diff --git a/tasks/dotfiles.yml b/tasks/dotfiles.yml index df4c724..7a3566d 100644 --- a/tasks/dotfiles.yml +++ b/tasks/dotfiles.yml @@ -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 diff --git a/vars/BV_boutique.yml b/vars/BV_boutique.yml new file mode 100644 index 0000000..d5ec5ec --- /dev/null +++ b/vars/BV_boutique.yml @@ -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