disable unused
This commit is contained in:
parent
1e70fb560b
commit
7fdc0e7153
113
playbook.yaml
113
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 }}"
|
||||
|
Loading…
Reference in New Issue
Block a user