From 7fdc0e715350953278ba81dde59eb173fe3b93ea Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Mon, 9 Sep 2024 03:20:43 +0300 Subject: [PATCH] disable unused --- playbook.yaml | 113 +++++++++++++++++++++++--------------------------- 1 file changed, 53 insertions(+), 60 deletions(-) diff --git a/playbook.yaml b/playbook.yaml index b0254ed..d3c4f9b 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -97,40 +97,33 @@ ansible.builtin.apt: upgrade: dist force_apt_get: true + autoremove: true register: apt_upgrade_result retries: 5 delay: 50 until: apt_upgrade_result is succeeded - - name: Autoremove packages - ansible.builtin.apt: - autoremove: true - register: apt_autoremove_result - retries: 5 - delay: 50 - until: apt_autoremove_result is succeeded - - - name: Install packages - ansible.builtin.apt: - name: - - ca-certificates - - zlib1g-dev - - libncurses5-dev - - libgdbm-dev - - libnss3-dev - - curl - - jq - - git - - zip - - wget - - make - - python3 - - python3-pip - - iftop - state: present - update_cache: true - async: "{{ 60 * 20 }}" - poll: 30 +# - name: Install packages +# ansible.builtin.apt: +# name: +# - ca-certificates +# - zlib1g-dev +# - libncurses5-dev +# - libgdbm-dev +# - libnss3-dev +# - curl +# - jq +# - git +# - zip +# - wget +# - make +# - python3 +# - python3-pip +# - iftop +# state: present +# update_cache: true +# async: "{{ 60 * 20 }}" +# poll: 30 - name: Check no-proxy ipfs access ansible.builtin.shell: | @@ -146,38 +139,38 @@ changed_when: false failed_when: proxy_check.stdout != "200" - - name: Install Docker - ansible.builtin.shell: curl -fsSL https://get.docker.com | bash - changed_when: false - async: "{{ 60 * 5 }}" - poll: 30 +# - name: Install Docker +# ansible.builtin.shell: curl -fsSL https://get.docker.com | bash +# changed_when: false +# async: "{{ 60 * 5 }}" +# poll: 30 - - name: Update Docker daemon journald logging - ansible.builtin.copy: - dest: /etc/docker/daemon.json - content: | - { - "log-driver": "journald" - } - mode: '0644' - - - name: Restart Docker - ansible.builtin.service: - name: docker - state: restarted - - - name: Update journald log SystemMaxUse=2G configuration - ansible.builtin.lineinfile: - path: /etc/systemd/journald.conf - line: 'SystemMaxUse=2G' - insertafter: EOF - create: true - mode: '0644' - - - name: Restart journald - ansible.builtin.service: - name: systemd-journald - state: restarted +# - name: Update Docker daemon journald logging +# ansible.builtin.copy: +# dest: /etc/docker/daemon.json +# content: | +# { +# "log-driver": "journald" +# } +# mode: '0644' +# +# - name: Restart Docker +# ansible.builtin.service: +# name: docker +# state: restarted +# +# - name: Update journald log SystemMaxUse=2G configuration +# ansible.builtin.lineinfile: +# path: /etc/systemd/journald.conf +# line: 'SystemMaxUse=2G' +# insertafter: EOF +# create: true +# mode: '0644' +# +# - name: Restart journald +# ansible.builtin.service: +# name: systemd-journald +# state: restarted - name: Docker login ansible.builtin.shell: docker login -u "{{ docker_username }}" -p "{{ docker_password }}"