blob: 69b1f56dbd4a7d499f7704babab7e5f94bee6f18 (
plain) (
tree)
|
|
# common ~~ tasks/main.yml
---
- name: check existence of data directory
file:
path: /data
owner: "{{ user_root }}"
group: "{{ group_root }}"
state: directory
mode: 0711
- name: check existence of zsh directoy
file:
path: /etc/zsh
owner: "{{ user_root }}"
group: "{{ group_root }}"
state: directory
mode: 0755
when: ansible_system == "Linux"
- name: copy zsh configuration file
copy:
src: zshrc
dest: "{{ path_zshconfig }}"
owner: "{{ user_root }}"
group: "{{ group_root }}"
mode: 0644
- name: copy tmux configuration file
copy:
src: tmux.conf
dest: "{{ path_tmuxconfig }}"
owner: "{{ user_root }}"
group: "{{ group_root }}"
mode: 0644
- name: copy motd configuration file
template:
src: motd.j2
dest: /etc/motd
owner: "{{ user_root }}"
group: "{{ group_root }}"
mode: 0644
- name: synchronize host hostname with config hostname
hostname: name="{{ inventory_hostname }}"
|