disable unused
This commit is contained in:
parent
1e70fb560b
commit
7fdc0e7153
113
playbook.yaml
113
playbook.yaml
@ -97,40 +97,33 @@
|
|||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
upgrade: dist
|
upgrade: dist
|
||||||
force_apt_get: true
|
force_apt_get: true
|
||||||
|
autoremove: true
|
||||||
register: apt_upgrade_result
|
register: apt_upgrade_result
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 50
|
delay: 50
|
||||||
until: apt_upgrade_result is succeeded
|
until: apt_upgrade_result is succeeded
|
||||||
|
|
||||||
- name: Autoremove packages
|
# - name: Install packages
|
||||||
ansible.builtin.apt:
|
# ansible.builtin.apt:
|
||||||
autoremove: true
|
# name:
|
||||||
register: apt_autoremove_result
|
# - ca-certificates
|
||||||
retries: 5
|
# - zlib1g-dev
|
||||||
delay: 50
|
# - libncurses5-dev
|
||||||
until: apt_autoremove_result is succeeded
|
# - libgdbm-dev
|
||||||
|
# - libnss3-dev
|
||||||
- name: Install packages
|
# - curl
|
||||||
ansible.builtin.apt:
|
# - jq
|
||||||
name:
|
# - git
|
||||||
- ca-certificates
|
# - zip
|
||||||
- zlib1g-dev
|
# - wget
|
||||||
- libncurses5-dev
|
# - make
|
||||||
- libgdbm-dev
|
# - python3
|
||||||
- libnss3-dev
|
# - python3-pip
|
||||||
- curl
|
# - iftop
|
||||||
- jq
|
# state: present
|
||||||
- git
|
# update_cache: true
|
||||||
- zip
|
# async: "{{ 60 * 20 }}"
|
||||||
- wget
|
# poll: 30
|
||||||
- make
|
|
||||||
- python3
|
|
||||||
- python3-pip
|
|
||||||
- iftop
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
async: "{{ 60 * 20 }}"
|
|
||||||
poll: 30
|
|
||||||
|
|
||||||
- name: Check no-proxy ipfs access
|
- name: Check no-proxy ipfs access
|
||||||
ansible.builtin.shell: |
|
ansible.builtin.shell: |
|
||||||
@ -146,38 +139,38 @@
|
|||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: proxy_check.stdout != "200"
|
failed_when: proxy_check.stdout != "200"
|
||||||
|
|
||||||
- name: Install Docker
|
# - name: Install Docker
|
||||||
ansible.builtin.shell: curl -fsSL https://get.docker.com | bash
|
# ansible.builtin.shell: curl -fsSL https://get.docker.com | bash
|
||||||
changed_when: false
|
# changed_when: false
|
||||||
async: "{{ 60 * 5 }}"
|
# async: "{{ 60 * 5 }}"
|
||||||
poll: 30
|
# poll: 30
|
||||||
|
|
||||||
- name: Update Docker daemon journald logging
|
# - name: Update Docker daemon journald logging
|
||||||
ansible.builtin.copy:
|
# ansible.builtin.copy:
|
||||||
dest: /etc/docker/daemon.json
|
# dest: /etc/docker/daemon.json
|
||||||
content: |
|
# content: |
|
||||||
{
|
# {
|
||||||
"log-driver": "journald"
|
# "log-driver": "journald"
|
||||||
}
|
# }
|
||||||
mode: '0644'
|
# mode: '0644'
|
||||||
|
#
|
||||||
- name: Restart Docker
|
# - name: Restart Docker
|
||||||
ansible.builtin.service:
|
# ansible.builtin.service:
|
||||||
name: docker
|
# name: docker
|
||||||
state: restarted
|
# state: restarted
|
||||||
|
#
|
||||||
- name: Update journald log SystemMaxUse=2G configuration
|
# - name: Update journald log SystemMaxUse=2G configuration
|
||||||
ansible.builtin.lineinfile:
|
# ansible.builtin.lineinfile:
|
||||||
path: /etc/systemd/journald.conf
|
# path: /etc/systemd/journald.conf
|
||||||
line: 'SystemMaxUse=2G'
|
# line: 'SystemMaxUse=2G'
|
||||||
insertafter: EOF
|
# insertafter: EOF
|
||||||
create: true
|
# create: true
|
||||||
mode: '0644'
|
# mode: '0644'
|
||||||
|
#
|
||||||
- name: Restart journald
|
# - name: Restart journald
|
||||||
ansible.builtin.service:
|
# ansible.builtin.service:
|
||||||
name: systemd-journald
|
# name: systemd-journald
|
||||||
state: restarted
|
# state: restarted
|
||||||
|
|
||||||
- name: Docker login
|
- name: Docker login
|
||||||
ansible.builtin.shell: docker login -u "{{ docker_username }}" -p "{{ docker_password }}"
|
ansible.builtin.shell: docker login -u "{{ docker_username }}" -p "{{ docker_password }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user