updates for prime step and local registry and switch prov
diff --git a/roles/registry/tasks/main.yml b/roles/registry/tasks/main.yml
index c67924d..1453eef 100644
--- a/roles/registry/tasks/main.yml
+++ b/roles/registry/tasks/main.yml
@@ -1,4 +1,14 @@
+- name: Ensure Hostname Resolution
+ become: yes
+ lineinfile:
+ dest: /etc/hosts
+ line: 127.0.0.1 docker-registry
+ owner: root
+ group: root
+ mode: 0644
+
- name: Directories are present
+ become: yes
file:
path: "{{ item }}"
state: directory
@@ -8,11 +18,21 @@
tags: [registry]
- name: Configuration is copied
+ become: yes
copy:
src: mirror-config.yml
dest: /data/registry-mirror/conf/config.yml
tags: [registry]
+- name: Ensure Directories
+ become: yes
+ file:
+ path: /etc/maas
+ state: directory
+ owner: root
+ group: root
+ mode: 0755
+
- name: Local Docker Registry
become: yes
template: