ci: add testing for image_manifest and implement fixes (#321)
Co-authored-by: okozachenko1203 <okozachenko1203@users.noreply.github.com>
diff --git a/roles/image_manifest/README.md b/roles/image_manifest/README.md
index 43e8546..da8e6f1 100644
--- a/roles/image_manifest/README.md
+++ b/roles/image_manifest/README.md
@@ -28,14 +28,6 @@
playbook:
```bash
-ansible-playbook vexxhost.atmosphere.image_manifest
-```
-
-The playbook will prompt you for the location of the file that you want to
-write the image manifest to. You can also provide it as a command line
-argument:
-
-```bash
ansible-playbook vexxhost.atmosphere.image_manifest \
-e image_manifest_path=/tmp/atmosphere_images.yml
```
@@ -79,10 +71,11 @@
```bash
ansible-playbook vexxhost.atmosphere.image_manifest \
-e image_manifest_mirror=true \
+ -e image_manifest_path=/tmp/atmosphere_images.yml
```
-If you want to provide the registry and the path as command line arguments, you
-can use the `image_manifest_registry` and `image_manifest_path` variables:
+If you want to provide the registry as a command line argument, you
+can use the `image_manifest_registry` variable:
```bash
ansible-playbook vexxhost.atmosphere.image_manifest \
diff --git a/roles/image_manifest/tasks/main.yml b/roles/image_manifest/tasks/main.yml
index 843f226..b07c9b7 100644
--- a/roles/image_manifest/tasks/main.yml
+++ b/roles/image_manifest/tasks/main.yml
@@ -13,6 +13,7 @@
- name: Mirror images
when: image_manifest_mirror
+ changed_when: false
ansible.builtin.command:
crane copy {{ atmosphere_images[item] }} {{ image_manifest_data['atmosphere_images'][item] }}
loop: |