Skip to content

Commit

Permalink
Made sure that Regenerating machine-id & host ssh keys... tasks is …
Browse files Browse the repository at this point in the history
…green when no modifications are made in `os_configuration` role
  • Loading branch information
AllRWeak authored and bl0way committed Oct 9, 2023
1 parent 14ce62d commit 4c71a37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions nova/core/roles/os_configuration/tasks/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,5 @@
ansible.builtin.shell: "{{ lookup('template', 'regenerate-machine-id.sh') }}"
args:
executable: /bin/bash
register: regenerate_machine_id
changed_when: regenerate_machine_id.stdout != "done"
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ if [[ -z $(grep -r {{ hostname }} /etc/ssh/) ]]; then

else

echo "SSH host keys and machine-id already generated"
echo "done"

fi

0 comments on commit 4c71a37

Please sign in to comment.