Browse Source

names

ca-cert-and-multi-ks
ePietry 2 years ago
parent
commit
a781c600c0
  1. 6
      ansible/playbooks/initial_ostree.yaml

6
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"

Loading…
Cancel
Save