added tasks for allusers
This commit is contained in:
@@ -34,39 +34,39 @@
|
||||
loop:
|
||||
- "private_keys/gitlab_read_ed25519"
|
||||
|
||||
- name: users | root | install known_hosts
|
||||
copy:
|
||||
dest: "/root/.ssh/known_hosts"
|
||||
src: "users/known_hosts"
|
||||
backup: True
|
||||
mode: '0600'
|
||||
owner: 'root'
|
||||
group: 'root'
|
||||
# - name: users | root | install known_hosts
|
||||
# copy:
|
||||
# dest: "/root/.ssh/known_hosts"
|
||||
# src: "users/known_hosts"
|
||||
# backup: True
|
||||
# mode: '0600'
|
||||
# owner: 'root'
|
||||
# group: 'root'
|
||||
|
||||
- name: users | root | create script directories
|
||||
file:
|
||||
path: "{{ root_home }}/scripts"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
# - name: users | root | create script directories
|
||||
# file:
|
||||
# path: "{{ root_home }}/scripts"
|
||||
# state: directory
|
||||
# mode: '0755'
|
||||
|
||||
- name: users | root | clone root_bins
|
||||
git:
|
||||
repo: 'ssh://git@gitlab.social.my-wan.de:22422/rene/root-bin.git'
|
||||
dest: "{{ root_home }}/bin"
|
||||
key_file: '/root/.ssh/gitlab_read_ed25519'
|
||||
# - name: users | root | clone root_bins
|
||||
# git:
|
||||
# repo: 'ssh://git@gitlab.social.my-wan.de:22422/rene/root-bin.git'
|
||||
# dest: "{{ root_home }}/bin"
|
||||
# key_file: '/root/.ssh/gitlab_read_ed25519'
|
||||
|
||||
- name: users | root | link dotfiles
|
||||
become: yes
|
||||
become_user: root
|
||||
file:
|
||||
state: link
|
||||
src: "/home/root/dotfiles/{{ item.src }}"
|
||||
path: "home/root/{{ item.dest }}"
|
||||
with_items:
|
||||
- { src: 'vim/vimrc', dest: '.vimrc' }
|
||||
- { src: 'bash/bashrc', dest: '.bashrc' }
|
||||
- { src: 'zsh/zshrc', dest: '.zshrc' }
|
||||
- { src: 'tmux/tmux.conf', dest: '.tmux.conf' }
|
||||
# - name: users | root | link dotfiles
|
||||
# become: yes
|
||||
# become_user: root
|
||||
# file:
|
||||
# state: link
|
||||
# src: "/home/root/dotfiles/{{ item.src }}"
|
||||
# path: "home/root/{{ item.dest }}"
|
||||
# with_items:
|
||||
# - { src: 'vim/vimrc', dest: '.vimrc' }
|
||||
# - { src: 'bash/bashrc', dest: '.bashrc' }
|
||||
# - { src: 'zsh/zshrc', dest: '.zshrc' }
|
||||
# - { src: 'tmux/tmux.conf', dest: '.tmux.conf' }
|
||||
|
||||
######################################################
|
||||
# Learn Linux TV example
|
||||
|
||||
Reference in New Issue
Block a user