--- /dev/null
+# Copyright (c) 2023 Jakub Czajka <jakub@ekhem.eu.org>
+# License: GPL-3.0 or later.
+
+- name: Install ansible and git
+ package:
+ name:
+ - ansible
+ - git
+ become: true
+- name: Create ansible directory
+ file:
+ path: /etc/ansible
+ state: directory
+ become: true
+- name: Checkout hosts to /etc/ansible
+ command: /usr/bin/git --work-tree=/etc --git-dir=/srv/git/server.git checkout \
+ main --force ansible/hosts
+ become: true
# Copyright (c) 2023 Jakub Czajka <jakub@ekhem.eu.org>
# License: GPL-3.0 or later.
+- name: Install pip
+ package:
+ name:
+ - python3-pip
+ become: true
- name: Install gdrive_knife
pip:
name: gdrive_knife
users:
- git
- "{{ default_user }}"
- - name: Install ansible and pip
- package:
- name:
- - ansible
- - python3-pip
- become: true
- include_tasks: install/download.yaml
with_items: "{{ inputs }}"
- include_tasks: install/certify.yaml
with_items: "{{ certificates }}"
+ - include_tasks: install/ansible.yaml
- include_tasks: install/environment.yaml
- include_tasks: install/database.yaml