summaryrefslogtreecommitdiff
path: root/site.yml
diff options
context:
space:
mode:
Diffstat (limited to 'site.yml')
-rw-r--r--site.yml50
1 files changed, 50 insertions, 0 deletions
diff --git a/site.yml b/site.yml
index 1296890..50a2822 100644
--- a/site.yml
+++ b/site.yml
@@ -26,6 +26,54 @@
# ------------------------------------------------------------
+- name: set up zsh for root and horus
+ hosts: all
+ become: no
+ vars:
+ the_user: "horus"
+ tasks:
+ - name: change user shell to zsh
+ become: yes
+ user:
+ name: "{{ the_user }}"
+ shell: /bin/zsh
+ - name: change root shell to zsh
+ become: no
+ user:
+ name: "root"
+ shell: /bin/zsh
+ tags:
+ - chsh
+
+- name: copy .zshrc for root and horus
+ hosts: all
+ tasks:
+ - name: copy .zshrc for root
+ copy:
+ src: .zshrc
+ dest: /root/.zshrc
+ owner: root
+ - name: copy .zsh_aliases for root
+ copy:
+ src: .zsh_aliases
+ dest: /root/.zsh_aliases
+ owner: root
+ - name: copy .zshrc for horus
+ copy:
+ src: .zshrc
+ dest: /home/horus/.zshrc
+ owner: horus
+ - name: copy .zsh_aliases for root
+ copy:
+ src: .zsh_aliases
+ dest: /home/horus/.zsh_aliases
+ owner: horus
+ tags:
+ - chsh
+
+
+# ------------------------------------------------------------
+
- name: php
hosts: all
roles:
@@ -63,3 +111,5 @@
tags:
- mostdiscussed
- applications
+
+ #the_user: "{{ ansible_user_id }}"