Created
February 20, 2021 09:57
-
-
Save sergio-correia/4c4a9422437bce458f7fd53a4747f1ce to your computer and use it in GitHub Desktop.
DevConf21 - Source for the ansible demo using nbde_server and nbde_server roles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: nbde_clients | |
vars: | |
nbde_client_bindings: | |
- device: /dev/rhel/root | |
encryption_key_src: ~/devconf/keyfile | |
servers: | |
- http://10.0.138.222 | |
- device: /dev/rhel/swap | |
encryption_key_src: ~/devconf/keyfile | |
servers: | |
- http://10.0.138.222 | |
tasks: | |
- name: Deploy clevis clients | |
import_role: | |
name: linux-system-roles.nbde_client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[all] | |
tang01 ansible_host=server01 ansible_user=root | |
clevis ansible_host=devconf ansible_user=root | |
[nbde_servers] | |
tang01 | |
[nbde_clients] | |
clevis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: nbde_servers | |
tasks: | |
- name: Deploy tang servers | |
import_role: | |
name: linux-system-roles.nbde_server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment