aboutsummaryrefslogblamecommitdiffstats
path: root/roles/common/tasks/main.yml
blob: b562e88daa897336e6e1784660bfc3be56fe77a7 (plain) (tree)
1
2
3
4
5
6
7
8




                          
                                          
       
               


                
                    
 
                                        

                  


                
                    
                                 
 
                                   

              
                                


                
 
                                    

                  
                                 


                
 



                                    


                
 

                                                      
 

# common ~~ tasks/main.yml

---

- name: ensure existence of data directory
  file:
    path: /data
    owner: "0"
    group: "0"
    mode: "0755"
    state: directory

- name: ensure existence of zsh directoy
  file:
    path: /etc/zsh
    owner: "0"
    group: "0"
    mode: "0755"
    state: directory
  when: ansible_system == "Linux"

- name: copy zsh configuration file
  copy:
    src: zshrc
    dest: "{{ path_zshconfig }}"
    owner: "0"
    group: "0"
    mode: "0644"

- name: copy tmux configuration file
  copy:
    src: tmux.conf
    dest: "{{ path_tmuxconfig }}"
    owner: "0"
    group: "0"
    mode: "0644"

- name: copy motd configuration file
  template:
    src: motd.j2
    dest: /etc/motd
    owner: "0"
    group: "0"
    mode: "0644"

- name: synchronize host hostname with config hostname
  hostname: name="{{ inventory_hostname }}"

remember that computers suck.