aboutsummaryrefslogtreecommitdiffstats
path: root/roles/setup_utils/tasks
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-11-02 13:20:53 +0100
committerbinary <me@rgoncalves.se>2020-11-02 13:20:53 +0100
commit67c0e448276e46fafd47db73dfc0031786a18dc0 (patch)
treefa7635500542cab95325907f9a0b173bf621f74f /roles/setup_utils/tasks
parent1e059c8be273e090ed27a198e1b7b7ca5c0257b3 (diff)
downloadinfrastructure-67c0e448276e46fafd47db73dfc0031786a18dc0.tar.gz
Refactor utils and hostname to common role
Diffstat (limited to 'roles/setup_utils/tasks')
-rw-r--r--roles/setup_utils/tasks/main.yml70
1 files changed, 0 insertions, 70 deletions
diff --git a/roles/setup_utils/tasks/main.yml b/roles/setup_utils/tasks/main.yml
deleted file mode 100644
index 300bef6..0000000
--- a/roles/setup_utils/tasks/main.yml
+++ /dev/null
@@ -1,70 +0,0 @@
-
-# =========================================================================== #
-# __ __ _ __
-# _________ / /__ __ __/ /_(_) /____
-# / ___/ __ \/ / _ \ / / / / __/ / / ___/
-# / / / /_/ / / __/ / /_/ / /_/ / (__ )
-# /_/ \____/_/\___(_) \__,_/\__/_/_/____/
-#
-# =========================================================================== #
-
----
-- name: Check installation of "{{ package_zsh }}"
- package:
- name: "{{ package_zsh }}"
- state: present
-
-- name: Check installation of "{{ package_neovim }}"
- package:
- name: "{{ package_neovim }}"
- state: present
-
-- name: Check installation of "{{ package_tmux }}"
- package:
- name: "{{ package_tmux }}"
- state: present
- ignore_errors: yes
-
-- name: Check installation of "{{ package_curl }}"
- package:
- name: "{{ package_curl }}"
- state: present
- ignore_errors: yes
-
-- name: Check installation of "{{ package_wget }}"
- package:
- name: "{{ package_wget }}"
- state: present
- ignore_errors: yes
-
-- name: Check installation of figlet
- package:
- name: figlet
- state: present
- ignore_errors: yes
-
-- name: Copy zshrc configuration file
- copy:
- src: zshrc
- dest: /etc/zshrc
- owner: root
- group: "{{ group_root }}"
- mode: 0644
-
-- name: Copy tmux configuration file
- copy:
- src: tmux.conf
- dest: /etc/tmux.conf
- owner: root
- group: "{{ group_root }}"
- mode: 0644
-
-- name: Retrieve all valid users for zsh
- shell: awk -F ":" '{ if($3 > 999 && $3 < 16000) { print $1 }}' /etc/passwd
- register: valid_users_shell
-
-- name: Change shell for all valid users to zsh
- user:
- name: "{{ item }}"
- shell: "{{ path_zsh_bin }}"
- loop: "{{ valid_users_shell.stdout_lines }}"
remember that computers suck.