Modernize Ansible playbooks: replace deprecated syntax (include: -> include_tasks:, with_items -> loop), use ansible.builtin modules, organize variables (defaults/main.yml), standardize tags, add prerequisites assertions and meta/main.yml
This commit is contained in:
@@ -15,12 +15,12 @@
|
||||
# ./runInstaller
|
||||
|
||||
- name: Création du répertoire oracle
|
||||
shell: |
|
||||
ansible.builtin.shell: |
|
||||
mkdir -p {{ item }}
|
||||
chown -R oracle:oinstall /$(echo {{ item }} | cut -d"/" -f2)
|
||||
chmod -R 775 /$(echo {{ item }} | cut -d"/" -f2)
|
||||
# file: path={{ item }} mode=775 owner=oracle group=oinstall state=directory recurse=yes
|
||||
with_items:
|
||||
loop:
|
||||
- "{{ oracle_base }}"
|
||||
- "{{ oracle_inventory }}"
|
||||
- "{{ oracle_home }}"
|
||||
|
||||
Reference in New Issue
Block a user