diff --git a/proxmox.yml b/proxmox.yml new file mode 100644 index 0000000..a0da455 --- /dev/null +++ b/proxmox.yml @@ -0,0 +1,16 @@ +--- +- name: Init for proxmox + hosts: proxmox + become: true + vars: + user: warezjoe + uid: 1000 + user_ssh_key_url: https://github.com/MatousVondrejka.keys + host: herodes # desktop rpi ntb + set_ip: true # false + ip: 192.168.5.6 + roles: + # - role: proxmox + # - role: linux_config_init + - role: tools_for_command_line + # - role: ansible-role-security diff --git a/roles/ansible-role-security b/roles/ansible-role-security new file mode 160000 index 0000000..4700aef --- /dev/null +++ b/roles/ansible-role-security @@ -0,0 +1 @@ +Subproject commit 4700aefc7406d9fe023dd25c3a82eec99250003a diff --git a/roles/linux_config_init/tasks/create_user.yml b/roles/linux_config_init/tasks/create_user.yml new file mode 100644 index 0000000..95ec34a --- /dev/null +++ b/roles/linux_config_init/tasks/create_user.yml @@ -0,0 +1,40 @@ +--- +- name: Adding group + ansible.builtin.group: + name: "{{ user }}" + state: present + gid: "{{ uid }}" + +- name: Adding user + ansible.builtin.user: + name: "{{ user }}" + group: "{{ user }}" + uid: "{{ uid }}" + shell: /bin/bash + groups: sudo + +- name: Dowload ssh key + ansible.builtin.uri: + url: "{{ user_ssh_key_url }}" + method: GET + return_content: true + register: ssh_key + +- name: Setting ssh key + ansible.builtin.blockinfile: + state: present + owner: "{{ user }}" + group: "{{ user }}" + insertafter: EOF + path: /home/{{ user }}/.ssh/authorized_keys + mode: '0644' + create: true + block: | + {{ ssh_key.content }} + +- name: Set permissions to .ssh folder + ansible.builtin.file: + path: /home/{{ user }}/.ssh + owner: "{{ user }}" + group: "{{ user }}" + mode: '0711' diff --git a/roles/linux_config_init/templates/etc_hosts b/roles/linux_config_init/templates/etc_hosts new file mode 100644 index 0000000..a00a0dd --- /dev/null +++ b/roles/linux_config_init/templates/etc_hosts @@ -0,0 +1,10 @@ +127.0.0.1 localhost.localdomain localhost +{{ ip }} {{ host }} +# The following lines are desirable for IPv6 capable hosts + +::1 ip6-localhost ip6-loopback +fe00::0 ip6-localnet +ff00::0 ip6-mcastprefix +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters +ff02::3 ip6-allhosts \ No newline at end of file diff --git a/roles/linux_config_init/templates/etc_network_interface b/roles/linux_config_init/templates/etc_network_interface new file mode 100644 index 0000000..7768b6f --- /dev/null +++ b/roles/linux_config_init/templates/etc_network_interface @@ -0,0 +1,15 @@ +auto lo +iface lo inet loopback + +iface {{ in_face }} inet manual + ethernet-wol g +auto vmbr0 +iface vmbr0 inet static + address {{ ip }}/24 + gateway 192.168.5.1 + bridge-ports {{ in_face }} + bridge-stp off + bridge-fd 0 + + +source /etc/network/interfaces.d/* \ No newline at end of file diff --git a/roles/nfs-share/.travis.yml b/roles/nfs-share/.travis.yml new file mode 100644 index 0000000..36bbf62 --- /dev/null +++ b/roles/nfs-share/.travis.yml @@ -0,0 +1,29 @@ +--- +language: python +python: "2.7" + +# Use the new container infrastructure +sudo: false + +# Install ansible +addons: + apt: + packages: + - python-pip + +install: + # Install ansible + - pip install ansible + + # Check ansible version + - ansible --version + + # Create ansible.cfg with correct roles_path + - printf '[defaults]\nroles_path=../' >ansible.cfg + +script: + # Basic role syntax check + - ansible-playbook tests/test.yml -i tests/inventory --syntax-check + +notifications: + webhooks: https://galaxy.ansible.com/api/v1/notifications/ \ No newline at end of file diff --git a/roles/nfs-share/README.md b/roles/nfs-share/README.md new file mode 100644 index 0000000..225dd44 --- /dev/null +++ b/roles/nfs-share/README.md @@ -0,0 +1,38 @@ +Role Name +========= + +A brief description of the role goes here. + +Requirements +------------ + +Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. + +Role Variables +-------------- + +A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. + +Dependencies +------------ + +A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles. + +Example Playbook +---------------- + +Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: + + - hosts: servers + roles: + - { role: username.rolename, x: 42 } + +License +------- + +BSD + +Author Information +------------------ + +An optional section for the role authors to include contact information, or a website (HTML is not allowed). diff --git a/roles/nfs-share/defaults/main.yml b/roles/nfs-share/defaults/main.yml new file mode 100644 index 0000000..7916894 --- /dev/null +++ b/roles/nfs-share/defaults/main.yml @@ -0,0 +1,2 @@ +--- +# defaults file for nfs-share diff --git a/roles/nfs-share/handlers/main.yml b/roles/nfs-share/handlers/main.yml new file mode 100644 index 0000000..cc21551 --- /dev/null +++ b/roles/nfs-share/handlers/main.yml @@ -0,0 +1,2 @@ +--- +# handlers file for nfs-share diff --git a/roles/nfs-share/meta/main.yml b/roles/nfs-share/meta/main.yml new file mode 100644 index 0000000..c572acc --- /dev/null +++ b/roles/nfs-share/meta/main.yml @@ -0,0 +1,52 @@ +galaxy_info: + author: your name + description: your role description + company: your company (optional) + + # If the issue tracker for your role is not on github, uncomment the + # next line and provide a value + # issue_tracker_url: http://example.com/issue/tracker + + # Choose a valid license ID from https://spdx.org - some suggested licenses: + # - BSD-3-Clause (default) + # - MIT + # - GPL-2.0-or-later + # - GPL-3.0-only + # - Apache-2.0 + # - CC-BY-4.0 + license: license (GPL-2.0-or-later, MIT, etc) + + min_ansible_version: 2.1 + + # If this a Container Enabled role, provide the minimum Ansible Container version. + # min_ansible_container_version: + + # + # Provide a list of supported platforms, and for each platform a list of versions. + # If you don't wish to enumerate all versions for a particular platform, use 'all'. + # To view available platforms and versions (or releases), visit: + # https://galaxy.ansible.com/api/v1/platforms/ + # + # platforms: + # - name: Fedora + # versions: + # - all + # - 25 + # - name: SomePlatform + # versions: + # - all + # - 1.0 + # - 7 + # - 99.99 + + galaxy_tags: [] + # List tags for your role here, one per line. A tag is a keyword that describes + # and categorizes the role. Users find roles by searching for tags. Be sure to + # remove the '[]' above, if you add tags to this list. + # + # NOTE: A tag is limited to a single word comprised of alphanumeric characters. + # Maximum 20 tags per role. + +dependencies: [] + # List your role dependencies here, one per line. Be sure to remove the '[]' above, + # if you add dependencies to this list. diff --git a/roles/nfs-share/tasks/main.yml b/roles/nfs-share/tasks/main.yml new file mode 100644 index 0000000..51ba852 --- /dev/null +++ b/roles/nfs-share/tasks/main.yml @@ -0,0 +1,22 @@ +--- +- name: Nfs install for Debian + become: true + ansible.builtin.package: + name: + - nfs-kernel-server + state: present + when: ansible_os_family == 'Debian' + +- name: Nfs install for RedHat + become: true + ansible.builtin.package: + name: + - nfs-utils + state: present + when: ansible_os_family == 'RedHat' + +- name: Start and enable nfs + ansible.builtin.service: + name: nfs-server + state: started + enabled: yes diff --git a/roles/nfs-share/tests/inventory b/roles/nfs-share/tests/inventory new file mode 100644 index 0000000..878877b --- /dev/null +++ b/roles/nfs-share/tests/inventory @@ -0,0 +1,2 @@ +localhost + diff --git a/roles/nfs-share/tests/test.yml b/roles/nfs-share/tests/test.yml new file mode 100644 index 0000000..cc646ad --- /dev/null +++ b/roles/nfs-share/tests/test.yml @@ -0,0 +1,5 @@ +--- +- hosts: localhost + remote_user: root + roles: + - nfs-share diff --git a/roles/nfs-share/vars/main.yml b/roles/nfs-share/vars/main.yml new file mode 100644 index 0000000..f5d95c7 --- /dev/null +++ b/roles/nfs-share/vars/main.yml @@ -0,0 +1,2 @@ +--- +# vars file for nfs-share diff --git a/roles/proxmox/.travis.yml b/roles/proxmox/.travis.yml new file mode 100644 index 0000000..36bbf62 --- /dev/null +++ b/roles/proxmox/.travis.yml @@ -0,0 +1,29 @@ +--- +language: python +python: "2.7" + +# Use the new container infrastructure +sudo: false + +# Install ansible +addons: + apt: + packages: + - python-pip + +install: + # Install ansible + - pip install ansible + + # Check ansible version + - ansible --version + + # Create ansible.cfg with correct roles_path + - printf '[defaults]\nroles_path=../' >ansible.cfg + +script: + # Basic role syntax check + - ansible-playbook tests/test.yml -i tests/inventory --syntax-check + +notifications: + webhooks: https://galaxy.ansible.com/api/v1/notifications/ \ No newline at end of file diff --git a/roles/proxmox/README.md b/roles/proxmox/README.md new file mode 100644 index 0000000..225dd44 --- /dev/null +++ b/roles/proxmox/README.md @@ -0,0 +1,38 @@ +Role Name +========= + +A brief description of the role goes here. + +Requirements +------------ + +Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. + +Role Variables +-------------- + +A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. + +Dependencies +------------ + +A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles. + +Example Playbook +---------------- + +Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: + + - hosts: servers + roles: + - { role: username.rolename, x: 42 } + +License +------- + +BSD + +Author Information +------------------ + +An optional section for the role authors to include contact information, or a website (HTML is not allowed). diff --git a/roles/proxmox/defaults/main.yml b/roles/proxmox/defaults/main.yml new file mode 100644 index 0000000..8c3c2ee --- /dev/null +++ b/roles/proxmox/defaults/main.yml @@ -0,0 +1,2 @@ +--- +# defaults file for proxmox diff --git a/roles/proxmox/handlers/main.yml b/roles/proxmox/handlers/main.yml new file mode 100644 index 0000000..2d6c512 --- /dev/null +++ b/roles/proxmox/handlers/main.yml @@ -0,0 +1,4 @@ +--- +# handlers file for proxmox +- name: iommu-grub-update + ansible.builtin.command: update-grub diff --git a/roles/proxmox/meta/main.yml b/roles/proxmox/meta/main.yml new file mode 100644 index 0000000..c572acc --- /dev/null +++ b/roles/proxmox/meta/main.yml @@ -0,0 +1,52 @@ +galaxy_info: + author: your name + description: your role description + company: your company (optional) + + # If the issue tracker for your role is not on github, uncomment the + # next line and provide a value + # issue_tracker_url: http://example.com/issue/tracker + + # Choose a valid license ID from https://spdx.org - some suggested licenses: + # - BSD-3-Clause (default) + # - MIT + # - GPL-2.0-or-later + # - GPL-3.0-only + # - Apache-2.0 + # - CC-BY-4.0 + license: license (GPL-2.0-or-later, MIT, etc) + + min_ansible_version: 2.1 + + # If this a Container Enabled role, provide the minimum Ansible Container version. + # min_ansible_container_version: + + # + # Provide a list of supported platforms, and for each platform a list of versions. + # If you don't wish to enumerate all versions for a particular platform, use 'all'. + # To view available platforms and versions (or releases), visit: + # https://galaxy.ansible.com/api/v1/platforms/ + # + # platforms: + # - name: Fedora + # versions: + # - all + # - 25 + # - name: SomePlatform + # versions: + # - all + # - 1.0 + # - 7 + # - 99.99 + + galaxy_tags: [] + # List tags for your role here, one per line. A tag is a keyword that describes + # and categorizes the role. Users find roles by searching for tags. Be sure to + # remove the '[]' above, if you add tags to this list. + # + # NOTE: A tag is limited to a single word comprised of alphanumeric characters. + # Maximum 20 tags per role. + +dependencies: [] + # List your role dependencies here, one per line. Be sure to remove the '[]' above, + # if you add dependencies to this list. diff --git a/roles/proxmox/tasks/iommu.yml b/roles/proxmox/tasks/iommu.yml new file mode 100644 index 0000000..d5c4353 --- /dev/null +++ b/roles/proxmox/tasks/iommu.yml @@ -0,0 +1,17 @@ +--- +- name: Copy to /etc/default/grub + template: + src: ../templates/grub + dest: /etc/default/grub + owner: root + group: root + mode: '0644' + notify: iommu-grub-update + +- name: Copy to /etc/modules + template: + src: ../templates/modules + dest: /etc/modules + owner: root + group: root + mode: '0644' diff --git a/roles/proxmox/tasks/main.yml b/roles/proxmox/tasks/main.yml new file mode 100644 index 0000000..cdc9ebd --- /dev/null +++ b/roles/proxmox/tasks/main.yml @@ -0,0 +1,8 @@ +--- +# tasks file for proxmox +- name: System settings + ansible.builtin.include_tasks: "{{ item }}" + loop: + - set_community_repo.yml + - iommu.yml + \ No newline at end of file diff --git a/roles/proxmox/tasks/set_community_repo.yml b/roles/proxmox/tasks/set_community_repo.yml new file mode 100644 index 0000000..5ccfa98 --- /dev/null +++ b/roles/proxmox/tasks/set_community_repo.yml @@ -0,0 +1,23 @@ +--- +- name: setting community repo + ansible.builtin.blockinfile: + state: present + insertafter: EOF + path: /etc/apt/sources.list + mode: '0664' + create: true + block: | + #Block for setting community repo + deb http://download.proxmox.com/debian/ {{ ansible_distribution_release }} pve-no-subscription + +- name: disable comercial one + file: path=/etc/apt/sources.list.d/pve-enterprise.list state=absent + +- name: disable comercial two + file: path=/etc/apt/sources.list.d/ceph.list state=absent + +- name: Update and upgrade apt packages + apt: + upgrade: yes + update_cache: yes + \ No newline at end of file diff --git a/roles/proxmox/templates/grub b/roles/proxmox/templates/grub new file mode 100644 index 0000000..97e27fc --- /dev/null +++ b/roles/proxmox/templates/grub @@ -0,0 +1,41 @@ +#MODIFIED VIA ANSIBLE + +# If you change this file, run 'update-grub' afterwards to update +# /boot/grub/grub.cfg. +# For full documentation of the options in this file, see: +# info -f grub -n 'Simple configuration' + +GRUB_DEFAULT=0 +GRUB_TIMEOUT=5 +GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` +GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on" +GRUB_CMDLINE_LINUX="" + +# If your computer has multiple operating systems installed, then you +# probably want to run os-prober. However, if your computer is a host +# for guest OSes installed via LVM or raw disk devices, running +# os-prober can cause damage to those guest OSes as it mounts +# filesystems to look for things. +#GRUB_DISABLE_OS_PROBER=false + +# Uncomment to enable BadRAM filtering, modify to suit your needs +# This works with Linux (no patch required) and with any kernel that obtains +# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) +#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" + +# Uncomment to disable graphical terminal +#GRUB_TERMINAL=console + +# The resolution used on graphical terminal +# note that you can use only modes which your graphic card supports via VBE +# you can see them in real GRUB with the command `vbeinfo' +#GRUB_GFXMODE=640x480 + +# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux +#GRUB_DISABLE_LINUX_UUID=true + +# Uncomment to disable generation of recovery mode menu entries +#GRUB_DISABLE_RECOVERY="true" + +# Uncomment to get a beep at grub start +#GRUB_INIT_TUNE="480 440 1" \ No newline at end of file diff --git a/roles/proxmox/templates/modules b/roles/proxmox/templates/modules new file mode 100644 index 0000000..cf73e46 --- /dev/null +++ b/roles/proxmox/templates/modules @@ -0,0 +1,12 @@ +#MODIFIED VIA ANSIBLE + +# /etc/modules: kernel modules to load at boot time. +# +# This file contains the names of kernel modules that should be loaded +# at boot time, one per line. Lines beginning with "#" are ignored. +# Parameters can be specified after the module name. + +vfio +vfio_iommu_type1 +vfio_pci +vfio_virqfd diff --git a/roles/proxmox/tests/inventory b/roles/proxmox/tests/inventory new file mode 100644 index 0000000..878877b --- /dev/null +++ b/roles/proxmox/tests/inventory @@ -0,0 +1,2 @@ +localhost + diff --git a/roles/proxmox/tests/test.yml b/roles/proxmox/tests/test.yml new file mode 100644 index 0000000..0e5ad9f --- /dev/null +++ b/roles/proxmox/tests/test.yml @@ -0,0 +1,5 @@ +--- +- hosts: localhost + remote_user: root + roles: + - proxmox diff --git a/roles/proxmox/vars/main.yml b/roles/proxmox/vars/main.yml new file mode 100644 index 0000000..e9d9e85 --- /dev/null +++ b/roles/proxmox/vars/main.yml @@ -0,0 +1,2 @@ +--- +# vars file for proxmox diff --git a/roles/zfs-install/.travis.yml b/roles/zfs-install/.travis.yml new file mode 100644 index 0000000..36bbf62 --- /dev/null +++ b/roles/zfs-install/.travis.yml @@ -0,0 +1,29 @@ +--- +language: python +python: "2.7" + +# Use the new container infrastructure +sudo: false + +# Install ansible +addons: + apt: + packages: + - python-pip + +install: + # Install ansible + - pip install ansible + + # Check ansible version + - ansible --version + + # Create ansible.cfg with correct roles_path + - printf '[defaults]\nroles_path=../' >ansible.cfg + +script: + # Basic role syntax check + - ansible-playbook tests/test.yml -i tests/inventory --syntax-check + +notifications: + webhooks: https://galaxy.ansible.com/api/v1/notifications/ \ No newline at end of file diff --git a/roles/zfs-install/README.md b/roles/zfs-install/README.md new file mode 100644 index 0000000..225dd44 --- /dev/null +++ b/roles/zfs-install/README.md @@ -0,0 +1,38 @@ +Role Name +========= + +A brief description of the role goes here. + +Requirements +------------ + +Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. + +Role Variables +-------------- + +A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. + +Dependencies +------------ + +A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles. + +Example Playbook +---------------- + +Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: + + - hosts: servers + roles: + - { role: username.rolename, x: 42 } + +License +------- + +BSD + +Author Information +------------------ + +An optional section for the role authors to include contact information, or a website (HTML is not allowed). diff --git a/roles/zfs-install/defaults/main.yml b/roles/zfs-install/defaults/main.yml new file mode 100644 index 0000000..803c95e --- /dev/null +++ b/roles/zfs-install/defaults/main.yml @@ -0,0 +1,2 @@ +--- +# defaults file for zfs-install diff --git a/roles/zfs-install/handlers/main.yml b/roles/zfs-install/handlers/main.yml new file mode 100644 index 0000000..e6be0c9 --- /dev/null +++ b/roles/zfs-install/handlers/main.yml @@ -0,0 +1,2 @@ +--- +# handlers file for zfs-install diff --git a/roles/zfs-install/meta/main.yml b/roles/zfs-install/meta/main.yml new file mode 100644 index 0000000..c572acc --- /dev/null +++ b/roles/zfs-install/meta/main.yml @@ -0,0 +1,52 @@ +galaxy_info: + author: your name + description: your role description + company: your company (optional) + + # If the issue tracker for your role is not on github, uncomment the + # next line and provide a value + # issue_tracker_url: http://example.com/issue/tracker + + # Choose a valid license ID from https://spdx.org - some suggested licenses: + # - BSD-3-Clause (default) + # - MIT + # - GPL-2.0-or-later + # - GPL-3.0-only + # - Apache-2.0 + # - CC-BY-4.0 + license: license (GPL-2.0-or-later, MIT, etc) + + min_ansible_version: 2.1 + + # If this a Container Enabled role, provide the minimum Ansible Container version. + # min_ansible_container_version: + + # + # Provide a list of supported platforms, and for each platform a list of versions. + # If you don't wish to enumerate all versions for a particular platform, use 'all'. + # To view available platforms and versions (or releases), visit: + # https://galaxy.ansible.com/api/v1/platforms/ + # + # platforms: + # - name: Fedora + # versions: + # - all + # - 25 + # - name: SomePlatform + # versions: + # - all + # - 1.0 + # - 7 + # - 99.99 + + galaxy_tags: [] + # List tags for your role here, one per line. A tag is a keyword that describes + # and categorizes the role. Users find roles by searching for tags. Be sure to + # remove the '[]' above, if you add tags to this list. + # + # NOTE: A tag is limited to a single word comprised of alphanumeric characters. + # Maximum 20 tags per role. + +dependencies: [] + # List your role dependencies here, one per line. Be sure to remove the '[]' above, + # if you add dependencies to this list. diff --git a/roles/zfs-install/tasks/main.yml b/roles/zfs-install/tasks/main.yml new file mode 100644 index 0000000..bca02f9 --- /dev/null +++ b/roles/zfs-install/tasks/main.yml @@ -0,0 +1,23 @@ +--- +# tasks file for zfs-install +- name: Set on Contrib for Debian + apt_repository: + repo: deb http://deb.debian.org/debian {{ ansible_distribution_release }} contrib + state: present + filename: contrib + update_cache: true + when: ansible_os_family == "Debian" + +- name: Zfs isntall + become: true + ansible.builtin.package: + name: + - zfsutils-linux + - linux-headers-amd64 + - zfs-dkms + - zfs-zed + state: present + +- name: Add the zfs module + community.general.modprobe: + name: zfs diff --git a/roles/zfs-install/tests/inventory b/roles/zfs-install/tests/inventory new file mode 100644 index 0000000..878877b --- /dev/null +++ b/roles/zfs-install/tests/inventory @@ -0,0 +1,2 @@ +localhost + diff --git a/roles/zfs-install/tests/test.yml b/roles/zfs-install/tests/test.yml new file mode 100644 index 0000000..b2999dd --- /dev/null +++ b/roles/zfs-install/tests/test.yml @@ -0,0 +1,5 @@ +--- +- hosts: localhost + remote_user: root + roles: + - zfs-install diff --git a/roles/zfs-install/vars/main.yml b/roles/zfs-install/vars/main.yml new file mode 100644 index 0000000..8fc86d8 --- /dev/null +++ b/roles/zfs-install/vars/main.yml @@ -0,0 +1,2 @@ +--- +# vars file for zfs-install diff --git a/universal.yml b/universal.yml new file mode 100644 index 0000000..cf9cc1a --- /dev/null +++ b/universal.yml @@ -0,0 +1,16 @@ +--- +- name: And now all running + hosts: mintotaur + vars: + user: warezjoe + host: ntb # desktop rpi ntb + set_ip: true # false + ip: 192.168.5.5 + roles: + - role: linux_config_init + - role: import_ssh_key # without sudo + - role: tools_for_command_line + # - role: service_start + # - role: gui_app_init + # - role: ansible-role-docker + # docker_users: "{{ user }}" diff --git a/zeus.yml b/zeus.yml new file mode 100644 index 0000000..977bd49 --- /dev/null +++ b/zeus.yml @@ -0,0 +1,17 @@ +- name: Init for zeus + hosts: zeus + become: true + vars: + user: warezjoe + uid: 1000 + user_ssh_key_url: https://github.com/MatousVondrejka.keys + host: zeus + set_ip: true # false + in_face: ens18 + ip: 192.168.5.7 + roles: + - role: linux_config_init + - role: tools_for_command_line + - role: ansible-role-security + - role: zfs-install + - role: nfs-share