diff --git a/beszel_install.yaml b/beszel_install.yaml deleted file mode 100644 index 3aec37b..0000000 --- a/beszel_install.yaml +++ /dev/null @@ -1,57 +0,0 @@ ---- -- hosts: debianhosts - gather_facts: no - tasks: - - name: change working directory - ansible.builtin.shell: - cmd: ls -l - chdir: /tmp - - - name: Install a list of packages - ansible.builtin.apt: - pkg: - - apt-transport-https - - curl - - gnupg - - - name: Get GPG key - ansible.builtin.shell: - cmd: curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor >bazel-archive-keyring.gpg - - - name: Move GPG key - ansible.builtin.shell: - cmd: mv bazel-archive-keyring.gpg /usr/share/keyrings - - - name: Add Key and repo to system - ansible.builtin.shell: - cmd: echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8' > /etc/apt/sources.list.d/bazel.list - - - name: Run the equivalent of "apt-get update" as a separate step - ansible.builtin.apt: - update_cache: yes - - # - name: Update all installed packages using APT module - # apt: - # name: '*' - # state: latest - # update_cache: yes - # only_upgrade: yes - # register: apt_update_status - - # - name: Update all installed packages using APT module - # apt: - # name: '*' - # state: latest - # update_cache: yes - # only_upgrade: yes - # register: apt_update_status - - # - name: Remove packages not needed anymore - # apt: - # autoremove: yes - - # - name: Reboot when packages were updated - # reboot: - # post_reboot_delay: 60 - # when: apt_update_status.changed -# diff --git a/fish_install.yaml b/fish_install.yaml deleted file mode 100644 index fb71b80..0000000 --- a/fish_install.yaml +++ /dev/null @@ -1,29 +0,0 @@ ---- -- hosts: debianhosts - gather_facts: no - tasks: - - name: Update all installed packages using APT module - apt: - name: 'fish' - state: latest - update_cache: yes - only_upgrade: yes - register: apt_update_status - - # - name: Update all installed packages using APT module - # apt: - # name: '*' - # state: latest - # update_cache: yes - # only_upgrade: yes - # register: apt_update_status - - # - name: Remove packages not needed anymore - # apt: - # autoremove: yes - - # - name: Reboot when packages were updated - # reboot: - # post_reboot_delay: 60 - # when: apt_update_status.changed -# diff --git a/fish_install.yml b/fish_install.yml deleted file mode 100644 index b2c1736..0000000 --- a/fish_install.yml +++ /dev/null @@ -1,29 +0,0 @@ ---- -- hosts: debianhosts - gather_facts: no - tasks: - - name: Update all installed packages using APT module - apt: - name: 'fish' - state: latest - update_cache: yes - only_upgrade: no - register: apt_update_status - - # - name: Update all installed packages using APT module - # apt: - # name: '*' - # state: latest - # update_cache: yes - # only_upgrade: yes - # register: apt_update_status - - # - name: Remove packages not needed anymore - # apt: - # autoremove: yes - - # - name: Reboot when packages were updated - # reboot: - # post_reboot_delay: 60 - # when: apt_update_status.changed -# \ No newline at end of file diff --git a/install_openitcockpit.yaml b/install_openitcockpit.yaml deleted file mode 100644 index 93faaec..0000000 --- a/install_openitcockpit.yaml +++ /dev/null @@ -1,91 +0,0 @@ ---- -- hosts: debianhosts - gather_facts: no - tasks: - # Copy remote file (host.example.com:/tmp/somefile) into - # /tmp/fetched/host.example.com/tmp/somefile on local machine - - # - ansible.builtin.copy: - # src: ./files/openitcockpit-agent_3.1.1_amd64.deb - # dest: /tmp/openitcockpit-agent_3.1.1_amd64.deb - # owner: root - # group: root - # mode: '0644' - - # - name: change working directory - # ansible.builtin.shell: - # cmd: ls -l - # chdir: /tmp - - # - name: Install openitcockpit agent - # ansible.builtin.shell: - # cmd: dpkg -i /tmp/openitcockpit-agent_3.1.1_amd64.deb - - # - ansible.builtin.copy: - # src: ./files/config.ini - # dest: /etc/openitcockpit-agent/config.ini - # owner: root - # group: root - # mode: '0644' - - # - name: Restart openitcockpit agent - # ansible.builtin.shell: - # cmd: systemctl restart openitcockpit-agent - - - - name: Uninstall multiple packages - ansible.builtin.apt: - name: - - openitcockpit-agent - - fish - state: absent - purge: yes - - # - name: Install a list of packages - # ansible.builtin.apt: - # pkg: - # - apt-transport-https - # - curl - # - gnupg - - # - name: Get GPG key - # ansible.builtin.shell: - # cmd: curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor >bazel-archive-keyring.gpg - - # - name: Move GPG key - # ansible.builtin.shell: - # cmd: mv bazel-archive-keyring.gpg /usr/share/keyrings - - # - name: Add Key and repo to system - # ansible.builtin.shell: - # cmd: echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8' > /etc/apt/sources.list.d/bazel.list - - # - name: Run the equivalent of "apt-get update" as a separate step - # ansible.builtin.apt: - # update_cache: yes - - # - name: Update all installed packages using APT module - # apt: - # name: '*' - # state: latest - # update_cache: yes - # only_upgrade: yes - # register: apt_update_status - - # - name: Update all installed packages using APT module - # apt: - # name: '*' - # state: latest - # update_cache: yes - # only_upgrade: yes - # register: apt_update_status - - # - name: Remove packages not needed anymore - # apt: - # autoremove: yes - - # - name: Reboot when packages were updated - # reboot: - # post_reboot_delay: 60 - # when: apt_update_status.changed -# diff --git a/omv_updates.yaml b/omv_updates.yaml deleted file mode 100644 index 70cee11..0000000 --- a/omv_updates.yaml +++ /dev/null @@ -1,30 +0,0 @@ ---- -- hosts: debianhosts - gather_facts: no - tasks: - - name: Update apt package cache - ansible.builtin.apt: - update_cache: yes - cache_valid_time: 3600 # Update cache if it's older than 1 hour (3600 seconds) - - - name: Upgrade all packages to the latest version - ansible.builtin.apt: - upgrade: dist # Equivalent to apt-get dist-upgrade - force_apt_get: yes # Ensure apt-get is used instead of aptitud - - - name: Clean up unused dependencies - ansible.builtin.apt: - autoremove: yes - - # - name: Apply pending changes - # ansible.builtin.command: /usr/local/bin/apply_changes.sh - - # - name: Check if a file exists - # ansible.builtin.stat: - # path: /var/run/reboot-required - # register: reboot_required_file - - # - name: Reboot if required - # ansible.builtin.reboot: - # reboot_timeout: 120 # Adjust timeout as needed - # when: reboot_required_file.stat.exists \ No newline at end of file