Rename folder to better purpose

This commit is contained in:
Laurent Indermuehle 2023-01-23 21:43:31 +01:00
parent 31a41d1a09
commit affcd1e93c
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09
3 changed files with 13 additions and 23 deletions

View file

@ -0,0 +1,11 @@
---
- name: "{{ role_name }} | Fake root | Ensure folder"
ansible.builtin.file:
path: "{{ playbook_dir }}/root"
state: directory
- name: "{{ role_name }} | Fake root | Ensure default file exists"
ansible.builtin.file:
path: "{{ playbook_dir }}/root/.my.cnf"
state: touch

View file

@ -1,21 +0,0 @@
---
# - name: "{{ role_name }} | install | Required package for testing"
# ansible.builtin.apt:
# name:
# - iproute2 # To grab docker network gateway address
# - python3-cryptography # To authenticate with MySQL 8+
# state: present
# update_cache: true
# environment:
# DEBIAN_FRONTEND: noninteractive
- name: "{{ role_name }} | install | Ensure fake root folder"
ansible.builtin.file:
path: "{{ playbook_dir }}/root"
state: directory
- name: "{{ role_name }} | install | Ensure fake root default file exists"
ansible.builtin.file:
path: "{{ playbook_dir }}/root/.my.cnf"
state: touch

View file

@ -4,9 +4,9 @@
# and should not be used as examples of how to write Ansible roles # # and should not be used as examples of how to write Ansible roles #
#################################################################### ####################################################################
- name: Prepare the controller python and MySQL connector - name: Prepare the fake root folder
ansible.builtin.import_tasks: ansible.builtin.import_tasks:
file: install.yml file: fake_root.yml
# setvars.yml requires the iproute2 package installed by install.yml # setvars.yml requires the iproute2 package installed by install.yml
- name: Set variables - name: Set variables