-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
33 additions
and
24 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ sudo: false | |
addons: | ||
apt: | ||
packages: | ||
- python3-pip | ||
- python3-pip | ||
|
||
install: | ||
# Install ansible | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
# handlers file for landscape | ||
# handlers file for landscape |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
--- | ||
- name: Ensure having supported Ubuntu release for 19.10 | ||
fail: msg="Please install supported Ubuntu release" | ||
ansible.builtin.fail: | ||
msg: Please install supported Ubuntu release | ||
when: | ||
- landscape_version == '19.10' | ||
- ansible_distribution_version not in ['16.04', '18.04'] | ||
|
||
- name: Ensure having supported Ubuntu release for 23.03 | ||
fail: msg="Please install supported Ubuntu release" | ||
ansible.builtin.fail: | ||
msg: Please install supported Ubuntu release | ||
when: | ||
- landscape_version == '23.03' | ||
- ansible_distribution_version not in ['20.04', '22.04'] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
- name: Install Landscape packages | ||
apt: | ||
ansible.builtin.apt: | ||
name: "{{ landscape_packages }}" | ||
update_cache: yes | ||
update_cache: true | ||
become: true |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
--- | ||
- name: Install core utilities | ||
apt: | ||
ansible.builtin.apt: | ||
name: "{{ landscape_core_packages }}" | ||
state: present | ||
become: true | ||
|
||
- name: Create a volume group for Landscape | ||
lvg: | ||
community.general.lvg: | ||
vg: "{{ landscape_vg }}" | ||
pvs: "{{ landscape_pv }}" | ||
become: true | ||
when: landscape_use_lvm | bool | ||
|
||
- name: Create logical volumes, file systems and mount points | ||
become: true | ||
when: landscape_use_lvm | bool | ||
block: | ||
- name: Create logical volumes | ||
lvol: | ||
community.general.lvol: | ||
vg: "{{ landscape_vg }}" | ||
lv: "{{ item.name }}" | ||
size: "{{ item.size }}" | ||
with_items: "{{ landscape_filesystems }}" | ||
- name: Create file systems | ||
filesystem: | ||
loop: "{{ landscape_filesystems }}" | ||
- name: Create file systems # noqa: args[module] | ||
community.general.filesystem: | ||
fstype: "{{ item.type }}" | ||
dev: "/dev/mapper/{{ landscape_vg }}-{{ item.name }}" | ||
with_items: "{{ landscape_filesystems }}" | ||
loop: "{{ landscape_filesystems }}" | ||
- name: Create mount points | ||
mount: | ||
ansible.posix.mount: | ||
path: "{{ item.mountpoint }}" | ||
src: "/dev/mapper/{{ landscape_vg }}-{{ item.name }}" | ||
fstype: "{{ item.type }}" | ||
opts: auto | ||
state: mounted | ||
with_items: "{{ landscape_filesystems }}" | ||
become: true | ||
when: landscape_use_lvm | bool | ||
loop: "{{ landscape_filesystems }}" | ||
|
||
- name: Add Landscape PPA | ||
apt_repository: | ||
ansible.builtin.apt_repository: | ||
repo: "{{ landscape_ppa }}" | ||
become: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
- hosts: localhost | ||
remote_user: root | ||
roles: | ||
- ansible-landscape | ||
- ansible-landscape |