Added creation of var/data.

This commit is contained in:
Jeff Fry
2020-09-27 11:18:13 -07:00
parent f4b9f13ea0
commit f33f5ecf14
2 changed files with 13 additions and 7 deletions

View File

@@ -64,11 +64,13 @@
group: "{{ artifactory_group }}"
become: yes
- name: ensure ownership of data
- name: ensure data exists
file:
path: "{{ artifactory_home }}/var/data"
owner: "artifactory"
group: "artifactory"
state: directory
owner: "{{ artifactory_user }}"
group: "{{ artifactory_group }}"
become: yes
- name: ensure etc exists
file:

View File

@@ -1,7 +1,9 @@
---
- name: Nginx Install Block
- name: install nginx
block:
- name: install nginx
- debug:
msg: "Attempting nginx installation without dependencies for potential offline mode."
- name: install nginx without dependencies
package:
name: nginx
state: present
@@ -11,9 +13,11 @@
become: yes
until: package_res is success
rescue:
- name: perform dependency installation
- debug:
msg: "Attempting nginx installation with dependencies for potential online mode."
- name: install dependencies
include_tasks: "{{ ansible_os_family }}.yml"
- name: install nginx
- name: install nginx after dependency installation
package:
name: nginx
state: present