]> freie-schul-it.de Git - fsit-cmgt.git/blobdiff - library/bootstrap.yml
lint Fehler suchen
[fsit-cmgt.git] / library / bootstrap.yml
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..2c17df5dac85fdfede57d5503099c4e38e6b0df0 100644 (file)
@@ -0,0 +1,46 @@
+---
+- name: change ansible-user password
+  ansible.builtin.user:
+    name: ansible
+    update_password: always
+    password: "{{ ansibleuser|password_hash('sha512') }}"
+- name: hide system-account
+    ansible.builtin.copy:
+    dest: /var/lib/AccountsService/users/ansible
+    content: |
+#      [User]
+      Session=
+      #XSession=
+      #Icon=/home/ansible/.face
+      #SystemAccount=true
+     # 
+      #[InputSource0]
+      #xkb=de
+       #- name: stop automatic remote printer installation
+       #ansible.builtin.systemd:
+       #name: cups-browsed
+       #state: stopped
+       #- name: disable automatic remote printer installation
+       #ansible.builtin.systemd:
+       #name: cups-browsed
+       #enabled: no
+- name: remove apt-config-file derived from preseeding
+  ansible.builtin.file:
+    path: /etc/apt/apt.conf
+    state: absent
+- name: copy new apt-proxy config file to apt.conf.d-dir
+  ansible.builtin.template:
+    src: files/apt-proxy_01proxy.j2
+    dest: /etc/apt/apt.conf.d/01proxy
+- name: Update and upgrade apt packages
+  apt:
+    update_cache: yes
+    upgrade: yes
+- name: install core-packages
+  apt:
+    pkg:
+    - htop
+    - glances
+    - inxi
+    - bmon
+...