From b3e15a8db61c6ad99b70c2252eed873d5fb377b2 Mon Sep 17 00:00:00 2001 From: Roman Schiwy Date: Tue, 31 Aug 2021 13:03:30 +0200 Subject: [PATCH] Initial Repo Setup --- install_default_packages.yml | 14 ++++++++++++++ install_htop.yml | 13 +++++++++++++ upgrade.yml | 12 ++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 install_default_packages.yml create mode 100644 install_htop.yml create mode 100644 upgrade.yml diff --git a/install_default_packages.yml b/install_default_packages.yml new file mode 100644 index 0000000..248499d --- /dev/null +++ b/install_default_packages.yml @@ -0,0 +1,14 @@ +--- + +- hosts: localhost + connection: local + become: true + pre_tasks: + + - name: install updates (Ubuntu/Debian) + package: + name: + - python3 + state: latest + update_cache: yes + when: ansible_distribution in ["Ubuntu", "Debian"] \ No newline at end of file diff --git a/install_htop.yml b/install_htop.yml new file mode 100644 index 0000000..77190ed --- /dev/null +++ b/install_htop.yml @@ -0,0 +1,13 @@ +--- + +- hosts: localhost + connection: local + become: true + tasks: + + - name: install htop + package: + name: + - htop + state: latest + update_cache: yes \ No newline at end of file diff --git a/upgrade.yml b/upgrade.yml new file mode 100644 index 0000000..0eca070 --- /dev/null +++ b/upgrade.yml @@ -0,0 +1,12 @@ +--- + +- hosts: localhost + connection: local + become: true + pre_tasks: + + - name: install updates (Ubuntu/Debian) + apt: + upgrade: dist + update_cache: yes + when: ansible_distribution in ["Ubuntu", "Debian"] \ No newline at end of file