From 5eab1b8cb22062c4530babadd0e6bdb1197ad692 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Fri, 10 May 2019 18:31:40 +0200 Subject: [PATCH] Feat(Combava): Start new computer Combava --- Combava.yml | 35 +++++++++++++++++++++++++++++++++++ tasks/dotfiles.yml | 3 +++ vars/Combava.yml | 5 +++++ 3 files changed, 43 insertions(+) create mode 100644 Combava.yml create mode 100644 vars/Combava.yml diff --git a/Combava.yml b/Combava.yml new file mode 100644 index 0000000..dee31df --- /dev/null +++ b/Combava.yml @@ -0,0 +1,35 @@ +--- +- hosts: localhost + connection: local + + vars_files: + - vars/common.yml + - vars/home.yml + - vars/Combava.yml + + tasks: + # - include: tasks/test.yml + - include: tasks/arch_aur.yml + - include: tasks/arch_CLI_packages.yml + - include: tasks/prompt.yml + - include: tasks/users.yml + - include: tasks/sudo.yml + # - include: tasks/ssh.yml + - include: tasks/arch_programming.yml + - include: tasks/arch_gnome.yml + - include: tasks/arch_graphicals.yml + - include: tasks/dotfiles.yml + - include: tasks/home_autofs.yml + - include: tasks/nfs_share.yml + #- include: tasks/wine.yml + - include: tasks/arch_virtualbox.yml + + handlers: + - name: restart sshd + service: + name: sshd + state: restarted + - name: restart nfs + service: + name: nfs-server + state: restarted diff --git a/tasks/dotfiles.yml b/tasks/dotfiles.yml index be92982..7d18416 100644 --- a/tasks/dotfiles.yml +++ b/tasks/dotfiles.yml @@ -42,14 +42,17 @@ url: https://raw.githubusercontent.com/getantibody/installer/master/install dest: /tmp/antibody.sh mode: 0770 + when: prompt == "zsh" - name: Execute the antibody.sh shell: /tmp/antibody.sh become: yes ignore_errors: yes + when: prompt == "zsh" - name: Remove the antibody.sh file: path=/tmp/antibody.sh state=absent + when: prompt == "zsh" - name: Copy local zshrc template: diff --git a/vars/Combava.yml b/vars/Combava.yml new file mode 100644 index 0000000..e56262f --- /dev/null +++ b/vars/Combava.yml @@ -0,0 +1,5 @@ +--- +prompt: fish + +deploy_public_key: id_ed25519_home.pub +