From 79f9d61161b8c48f841347c12f29eb79f8e8d9b6 Mon Sep 17 00:00:00 2001 From: vincent Date: Sat, 5 Mar 2022 10:33:17 +0100 Subject: [PATCH] add VPS --- group_vars/VPS | 51 +++++++++++++++++++++++++++++++++++++++++++++++ playbooks/VPS.yml | 5 +++++ production | 5 ++++- 3 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 group_vars/VPS create mode 100644 playbooks/VPS.yml diff --git a/group_vars/VPS b/group_vars/VPS new file mode 100644 index 0000000..ef5e52e --- /dev/null +++ b/group_vars/VPS @@ -0,0 +1,51 @@ +keystodeploy: + - name: juicessh with password + user: "{{user.name}}" + sshkey: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINN5V9WPPi2/HwAQuDeaJO3hUPf8HxNMHqVmkf1pDjWg JuiceSSH + - name: fixe-pc new + user: "{{user.name}}" + sshkey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDBrP9akjyailPU9tUMvKrtDsqjI191W1L95u3OFjBqqapXgbDVx1FVtSlIIKcCHZyTII1zgC7woZmNRpmaIJRh6N+VIuRrRs29xx2GUVc4pxflUwwIAK36hgZS3nqmA2biacmPR9HogZLZMcPtZdLhWGlLuUv1cWqbqW7UcDa0lbubCo2v4OQMx/zt37voKAZSkkbH9mVszH6eKxNFy1KXbLYhwXiKfYBnAHbivhiSkZUGV6D4HNj8Jx6IY1YF3bfwMXmt841Q/7OY+t3RTIS8ewvSF+jpQ7GKHBEsZTZUGwIoSyZFFvCgKQVOJu/ZJJS4HNkluilir9Sxtx2LRgy+HHQ251trnsVsJp3ts4uTiMkKJQy1PXy1ZvQXYkip9Af3vlXUMmTyVj8cv+No07G1rZ1pZ3wXKX4RkTsoep5GsYlhyUd7GzsAQQiX9YhYyWDQ6NHBYAGAWbw2BLNxltWa4AyWOa1C8v+1+mRwdvpdMY7powJNCXQaIJmiOZiI/Us= vincent@fixe-pc-2020-03-01 + - name: zen-pc + user: "{{user.name}}" + sshkey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCYHkEIa38p3e4+m/LScHm8Ei7H2X/pDksjVAzoJ4fHr8oXc6DKkC8SWwMnh3L4WzWBhfTbzwUgFTNpsxhp/UyJf+fdzmzetlbVlYSuA6yWuSmgMeFbXFImhZ+Sn3i59hLeqAAyrkQLjba2waehdEsuOQ/AGoDbMYm38Xf9Wka/1YIeUPE4gLeLvymRnGw7BSug6Unycy52WlFAquollObOvc7tNiX0uLDh81Dp0KZhqWRs75hfmQ9du4g4uNhFLiF11hOGNgj3PWV+nWe8GWNQYVUBChWX1dsP8ct/ahG9IFXSPEaFD1IZeFp29u2ln3mgKkBtcRTRe1e3CLQqiRsUq2aixVFbSgFMFgGSUiNGNqKR4f9DeyJrYBplSj6HXjWoBny4Wm8+yfk8qR2RtQpS6AUu81xtKnXOaj9Q5VZO3kVF0U3EXHAZutTYDj9mDlhLSBS7x7hmrkRBbIy7adSx9Gx5Ck3/RllqG6KD+LdJa4I0pUTRNetpLpYDeZpwjnDP1r7udaSQMyRMH5YKLzhtHqIV/imn9QO4KCxNxTgwxt9ho6HDvlDGERCxm+yeHUu3CPyq2ZGSF5HHsYTGUtYvQw4JfQyw/5DrZ7IIdU1e7ZuaE3h/NvFgKJPVTP52nmUtIW7pIOkHpn9mddjm/oKMayOzMspLn9HLFVbqi7A5Xw== vincent@zen-pc + +# defaults file for ansible-arch-provissionning +partition_table: + - device: "/dev/sda" + label: gpt + settings: + - number: 1 + part_end: 64MB + flags: [boot, esp] + fstype: vfat + format: yes + - number: 2 + part_start: 512MB + part_end: 1524MB + flags: [] + fstype: swap + format: yes + - number: 3 + part_start: 1524MB + flags: [lvm] + fstype: ext4 + format: yes + #- device: "/dev/sdb" + #settings: + #- number: 1 + #name: home + #fstype: ext4 + #format: +mount_table: + - device: "/dev/sda" + settings: + - number: 3 + mountpath: /mnt + fstype: ext4 + - number: 1 + mountpath: /mnt/boot + fstype: vfat + +#need vfat boot partition with esp label +provissionning_UEFI_Enable: True +sssd_configure: False diff --git a/playbooks/VPS.yml b/playbooks/VPS.yml new file mode 100644 index 0000000..018dac2 --- /dev/null +++ b/playbooks/VPS.yml @@ -0,0 +1,5 @@ +--- +- hosts: VPS + vars: + roles: + - user_config diff --git a/production b/production index ec1d88a..6364a93 100644 --- a/production +++ b/production @@ -12,4 +12,7 @@ zen-pc tablette [dhcp] -gaspard ansible_host=192.168.1.41 ansible_python_interpreter=/usr/bin/python3 +gerard ansible_host=192.168.1.41 ansible_python_interpreter=/usr/bin/python3 + +[VPS] +corwin ansible_host=65.108.221.233