user_config/tasks/main.yml

26 lines
1.2 KiB
YAML
Raw Normal View History

2018-12-02 20:03:41 +00:00
---
# tasks file for user_config
- name: clone user repository
git:
2019-04-11 16:53:38 +00:00
dest: /home/{{user.name}}/conf2 # required. The path of where the repository should be checked out. This parameter is required, unless C(clone) is set to C(no).
2018-12-02 20:03:41 +00:00
repo: ssh://git@pi2/vincent/conf2.git # required. git, SSH, or HTTP(S) protocol address of the git repository.
clone: yes # not required. If C(no), do not clone the repository if it does not exist locally
2019-04-08 21:09:14 +00:00
recursive: yes
2018-12-02 20:03:41 +00:00
force: no
update: no
accept_hostkey: yes
- name: pass user shell to zsh
user:
2019-04-11 16:53:38 +00:00
name: "{{user.name}}" # required. Name of the user to create, remove or modify.
2018-12-02 20:03:41 +00:00
shell: /bin/zsh # not required. Optionally set the user's shell.,On macOS, before version 2.5, the default shell for non-system users was /usr/bin/false. Since 2.5, the default shell for non-system users on macOS is /bin/bash.
state: present # not required. choices: absent;present. Whether the account should exist or not, taking action if the state is different from what is stated.
become: yes
- name: apply stow config
shell: stow *
args:
2019-04-11 16:53:38 +00:00
chdir: /home/{{user.name}}/conf2
creates: "/home/{{user.name}}/.zshrc.d/alias" # not required. a filename, when it already exists, this step will B(not) be run.
2019-04-09 17:42:12 +00:00