aboutsummaryrefslogtreecommitdiff
path: root/roles/packages/tasks
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2022-12-05 21:42:17 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2022-12-05 21:42:17 +0100
commit3b040fac09eb158caf963d7c956610f99f8e0c17 (patch)
treea39b2297abf2d404e1c974aebdd2fb17ffa2de69 /roles/packages/tasks
downloadansible-memzero-3b040fac09eb158caf963d7c956610f99f8e0c17.tar.gz
ansible-memzero-3b040fac09eb158caf963d7c956610f99f8e0c17.zip
initial ansible setup
Diffstat (limited to 'roles/packages/tasks')
-rw-r--r--roles/packages/tasks/main.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/roles/packages/tasks/main.yml b/roles/packages/tasks/main.yml
new file mode 100644
index 0000000..d3f0720
--- /dev/null
+++ b/roles/packages/tasks/main.yml
@@ -0,0 +1,30 @@
+---
+- name: Install EPEL
+ become: True
+ ansible.builtin.package:
+ name: epel-release
+ state: latest
+ when: ansible_facts['os_family'] == 'RedHat'
+
+#- name: Update all packages
+# become: True
+# ansible.builtin.package:
+# name: "*"
+# state: latest
+
+- name: Install packages
+ become: True
+ ansible.builtin.package:
+ name: "{{ item }}"
+ state: latest
+ loop:
+ - vim
+ - podman
+ - fish
+ - netcat
+
+- name: Set fish as default shell
+ become: True
+ ansible.builtin.user:
+ name: "{{ USER }}"
+ shell: /usr/bin/fish \ No newline at end of file