Fix: otherwise it does not run!
This commit is contained in:
@@ -7,18 +7,6 @@
|
||||
import_tasks: debian.yml
|
||||
when: ansible_os_family == "Debian"
|
||||
|
||||
- name: init neovim
|
||||
import_tasks: neovim.yml
|
||||
when: '"nvim" in user.config.stowing'
|
||||
|
||||
- name: init vim
|
||||
import_tasks: vim.yml
|
||||
when: '"vim" in user.config.stowing'
|
||||
|
||||
- name: init sway
|
||||
import_tasks: sway.yml
|
||||
when: '"sway" in user.config.stowing'
|
||||
|
||||
- name: Clone dotfiles
|
||||
ansible.builtin.git:
|
||||
repo: "{{ user.config.giturl }}"
|
||||
@@ -35,3 +23,14 @@
|
||||
chdir: "/home/{{ user.username }}/.dotfiles"
|
||||
with_items: "{{ user.config.stowing }}"
|
||||
|
||||
- name: init neovim
|
||||
import_tasks: neovim.yml
|
||||
when: '"nvim" in user.config.stowing'
|
||||
|
||||
- name: init vim
|
||||
import_tasks: vim.yml
|
||||
when: '"vim" in user.config.stowing'
|
||||
|
||||
- name: init sway
|
||||
import_tasks: sway.yml
|
||||
when: '"sway" in user.config.stowing'
|
||||
|
@@ -16,6 +16,7 @@
|
||||
shell: "{{ user.shell | default('/bin/bash') }}"
|
||||
state: present
|
||||
system: "{{ user.system | default('no') }}"
|
||||
create_home: true
|
||||
|
||||
#
|
||||
- name: ssh -- Add public key
|
||||
@@ -24,9 +25,15 @@
|
||||
key: "{{ lookup('file', item.keyfile) }}"
|
||||
state: present
|
||||
with_items: "{{ user.public_key }}"
|
||||
when: user.public_key
|
||||
#when: user.public_key
|
||||
when: false
|
||||
|
||||
# Dotfiles
|
||||
- name: set dotfiles
|
||||
import_tasks: dotfiles.yml
|
||||
|
||||
- name: user owns its create_home
|
||||
file:
|
||||
path: "/home/{{ user.username }}/.dotfiles"
|
||||
owner: "{{ user.username }}"
|
||||
group: users
|
||||
|
@@ -19,5 +19,9 @@
|
||||
state: present
|
||||
|
||||
- name: Install sway AUR packages
|
||||
aut:
|
||||
- avizo
|
||||
aur:
|
||||
name: avizo
|
||||
state: present
|
||||
become: yes
|
||||
become_user: aur_builder
|
||||
|
||||
|
@@ -11,6 +11,12 @@
|
||||
state: present
|
||||
when: ansible_os_family == "Debian"
|
||||
|
||||
- name: mkdir autoload
|
||||
ansible.builtin.file:
|
||||
path: "/home/{{ user.username }}/.vim/autoload"
|
||||
owner: "{{ user.username }}"
|
||||
state: directory
|
||||
|
||||
- name: Install vim-plug
|
||||
get_url:
|
||||
url: "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
|
||||
|
Reference in New Issue
Block a user