mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
Make package is needed as well, let's install it and then remove all the dangerous packages when we are done.
29 lines
715 B
YAML
29 lines
715 B
YAML
---
|
|
- name: Create the directories to hold the templates
|
|
ansible.builtin.file:
|
|
path: "/root/ocp4/openshift-apps/fas2discourse-operator"
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: "0770"
|
|
recurse: yes
|
|
|
|
- name: Install needed packages
|
|
ansible.builtin.package:
|
|
name:
|
|
- git
|
|
- make
|
|
state: present
|
|
|
|
- include_tasks: create-operator-namespace.yml
|
|
- include_tasks: create-keytab-secret.yml
|
|
- include_tasks: create-discourse-apikey-secret.yml
|
|
- include_tasks: deploy-fas2discourse-operator.yml
|
|
|
|
- name: Remove potentially dangerous packages that are not needed anymore
|
|
ansible.builtin.package:
|
|
name:
|
|
- git
|
|
- make
|
|
state: absent
|