From a781c600c0b5e73421bd388de71a929e7bb3c0a0 Mon Sep 17 00:00:00 2001 From: ePietry Date: Tue, 26 Mar 2024 18:44:35 +0100 Subject: [PATCH] names --- ansible/playbooks/initial_ostree.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/playbooks/initial_ostree.yaml b/ansible/playbooks/initial_ostree.yaml index ac589f2..a6398fb 100755 --- a/ansible/playbooks/initial_ostree.yaml +++ b/ansible/playbooks/initial_ostree.yaml @@ -12,11 +12,11 @@ src: "{{ playbook_dir }}/../blueprints/{{ blueprint }}" dest: /tmp/blueprints/blueprint.toml mode: '0755' - - name: Read the content of the TOML file + - name: Reading Blueprint file ansible.builtin.slurp: src: /tmp/blueprints/blueprint.toml register: toml_file_content - - name: Parse TOML content using Python + - name: Getting Blueprint Name ansible.builtin.shell: "echo '{{ toml_file_content.content | b64decode }}' | python -c 'import sys, toml; print(toml.loads(sys.stdin.read())[\"name\"])'" register: blueprint_name - name: Push Blueprint @@ -56,7 +56,7 @@ path: /tmp/empty-tree mode: '0755' state: directory - - name: optimazing OSTree + - name: optimizing OSTree ansible.builtin.shell: "ostree --repo=/var/www/repo commit -b 'empty' --tree=dir=/tmp/empty-tree" - name: adding /var/www/repo to OSTree ansible.builtin.shell: "ostree --repo=/var/www/repo refs"