Configure inotify limits;Filter updating image references
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
907ec8bf3b
commit
79b794dba2
@ -1,4 +1,6 @@
|
||||
collections:
|
||||
- name: https://github.com/ansible-collections/ansible.posix
|
||||
type: git
|
||||
- name: https://github.com/ansible-collections/ansible.utils
|
||||
type: git
|
||||
- name: https://github.com/ansible-collections/community.general
|
||||
|
@ -52,7 +52,7 @@
|
||||
version: "{{ components.clusterapi.workload.version.k8s }}"
|
||||
vip: "{{ vapp['workloadcluster.vip'] }}"
|
||||
|
||||
- name: Update image references to use local registry
|
||||
- name: WORKAROUND - Update image references to use local registry
|
||||
ansible.builtin.replace:
|
||||
dest: "{{ item.root ~ '/' ~ item.path }}"
|
||||
regexp: '([ ]+image:[ "]+)(?!({{ _template.pattern }}|"{{ _template.pattern }}))'
|
||||
@ -65,7 +65,7 @@
|
||||
label: "{{ item.path }}"
|
||||
when:
|
||||
- item.path is search('.yaml')
|
||||
- item.path is not search("clusterctl.yaml|metadata.yaml")
|
||||
- item.path is not search("cert-manager.yaml|clusterctl.yaml|components.yaml|metadata.yaml")
|
||||
|
||||
- name: Generate kustomization template
|
||||
ansible.builtin.template:
|
||||
|
@ -1,17 +1,7 @@
|
||||
- name: Disable tty logins
|
||||
import_tasks: tty.yml
|
||||
|
||||
- name: Remove snapd
|
||||
import_tasks: snapd.yml
|
||||
|
||||
- name: Remove cloud-init
|
||||
import_tasks: cloud-init.yml
|
||||
|
||||
- name: Configure default logging
|
||||
import_tasks: logging.yml
|
||||
|
||||
- name: Configure services
|
||||
import_tasks: services.yml
|
||||
|
||||
- name: Install packages
|
||||
import_tasks: packages.yml
|
||||
- import_tasks: tty.yml
|
||||
- import_tasks: snapd.yml
|
||||
- import_tasks: cloud-init.yml
|
||||
- import_tasks: logging.yml
|
||||
- import_tasks: services.yml
|
||||
- import_tasks: packages.yml
|
||||
- import_tasks: sysctl.yml
|
||||
|
11
ansible/roles/os/tasks/sysctl.yml
Normal file
11
ansible/roles/os/tasks/sysctl.yml
Normal file
@ -0,0 +1,11 @@
|
||||
- name: Configure inotify limits
|
||||
ansible.posix.sysctl:
|
||||
name: "{{ item.name }}"
|
||||
value: "{{ item.value }}"
|
||||
loop:
|
||||
- name: fs.inotify.max_user_instances
|
||||
value: '512'
|
||||
- name: fs.inotify.max_user_watches
|
||||
value: '524288'
|
||||
loop_control:
|
||||
label: "{{ item.name ~ '=' ~ item.value }}"
|
Loading…
Reference in New Issue
Block a user