mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-13 05:42:46 +01:00
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
#SPDX-License-Identifier: MIT-0
|
|
||||||
---
|
---
|
||||||
# handlers file for cloud_init
|
- name: Restart cloud-init
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
name: "{{ cloud_init_service }}"
|
||||||
|
state: restarted
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
# Ansible managed
|
||||||
|
|
||||||
|
system_info:
|
||||||
|
default_user:
|
||||||
|
name: {{ cloud_init_default_user }}
|
||||||
|
lock_passwd: {{ cloud_init_lock_passwd }}
|
||||||
@@ -1,6 +1,13 @@
|
|||||||
- name: Install Kubernetes on Ubuntu 24
|
- name: Install Kubernetes on Ubuntu 24
|
||||||
become: "{{ 'no' if inventory_hostname == 'nas.home.lan' else 'yes' }}"
|
become: "{{ 'no' if inventory_hostname == 'nas.home.lan' else 'yes' }}"
|
||||||
block:
|
block:
|
||||||
|
- name: Create apt proxy file
|
||||||
|
ansible.builtin.copy:
|
||||||
|
dest: /etc/apt/apt.conf.d/02proxy
|
||||||
|
content: |
|
||||||
|
Acquire::http::Proxy "http://192.168.77.101:3142";
|
||||||
|
Acquire::https::Proxy "false";
|
||||||
|
|
||||||
- name: Remove multiple files
|
- name: Remove multiple files
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user