Skip to content

Commit

Permalink
fix code, break linting
Browse files Browse the repository at this point in the history
  • Loading branch information
hitchhooker committed Feb 5, 2024
1 parent 8168cc8 commit 21cfb9e
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions roles/proxmox_setup_nodes/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
# Standards: 0.2

Check failure on line 1 in roles/proxmox_setup_nodes/tasks/main.yaml

View workflow job for this annotation

GitHub Actions / build (3.10)

yaml[comments-indentation]

Comment not indented like content
---
- name: Create predefined containers
community.general.proxmox:
api_user: "{{ api_user }}"
api_password: "{{ api_password }}"
api_host: "{{ proxmox_defaults.api_host }}"
vmid: "{{ item.proxmox_config.vmid }}"
hostname: "{{ item.proxmox_config.hostname }}"
template: "{{ item.proxmox_config.ostemplate }}"
netif: "{{ item.proxmox_config.netif }}"
cores: "{{ item.proxmox_config.cores }}"
memory: "{{ item.proxmox_config.memory }}"
swap: "{{ item.proxmox_config.swap }}"
password: "{{ item.proxmox_config.password }}"
disk: "{{ item.proxmox_config.disk }}"
mounts: "{{ item.proxmox_config.mounts }}"
onboot: "{{ item.proxmox_config.onboot }}"
unprivileged: "{{ item.proxmox_config.unprivileged }}"
validate_certs: "{{ item.proxmox_config.validate_certs }}"
description: "{{ item.proxmox_config.description }}"
state: "{{ item.proxmox_config.state }}"
features: "{{ item.proxmox_config.features }}"
loop: "{{ lxc_nodes }}"
when: lxc_nodes is defined
register: container_creation_result

- name: Start predefined nodes
community.general.proxmox:
api_user: "{{ api_user }}"
api_password: "{{ api_password }}"
api_host: "{{ proxmox_defaults.api_host }}"
vmid: "{{ item.proxmox_config.vmid }}"
state: 'started'
loop: "{{ lxc_nodes }}"
when:
- lxc_nodes is defined
- "'state' in item.proxmox_config"
- "item.proxmox_config['state'] == 'present'"
register: container_start_result

# - name: Create predefined containers
# community.general.proxmox: "{{ proxmox_defaults | combine(item.proxmox_config) }}"
# community.general.proxmox:
# api_user: "{{ api_user }}"
# api_password: "{{ api_password }}"
# api_host: "{{ proxmox_defaults.api_host }}"
# vmid: "{{ item.proxmox_config.vmid }}"
# hostname: "{{ item.proxmox_config.hostname }}"
# template: "{{ item.proxmox_config.ostemplate }}"
# netif: "{{ item.proxmox_config.netif }}"
# cores: "{{ item.proxmox_config.cores }}"
# memory: "{{ item.proxmox_config.memory }}"
# swap: "{{ item.proxmox_config.swap }}"
# password: "{{ item.proxmox_config.password }}"
# disk: "{{ item.proxmox_config.disk }}"
# mounts: "{{ item.proxmox_config.mounts }}"
# onboot: "{{ item.proxmox_config.onboot }}"
# unprivileged: "{{ item.proxmox_config.unprivileged }}"
# validate_certs: "{{ item.proxmox_config.validate_certs }}"
# description: "{{ item.proxmox_config.description }}"
# state: "{{ item.proxmox_config.state }}"
# features: "{{ item.proxmox_config.features }}"
# loop: "{{ lxc_nodes }}"
# when: lxc_nodes is defined
# register: container_creation_result
#
# - name: Start predefined nodes
# community.general.proxmox: "{{ proxmox_defaults | combine({'vmid': item.proxmox_config['vmid'], 'state': 'started'}) }}"
# community.general.proxmox:
# api_user: "{{ api_user }}"
# api_password: "{{ api_password }}"
# api_host: "{{ proxmox_defaults.api_host }}"
# vmid: "{{ item.proxmox_config.vmid }}"
# state: 'started'
# loop: "{{ lxc_nodes }}"
# when:
# - lxc_nodes is defined
# - item.proxmox_config['state'] == 'present'
# - "'state' in item.proxmox_config"
# - "item.proxmox_config['state'] == 'present'"
# register: container_start_result

- name: Create predefined containers
community.general.proxmox: "{{ proxmox_defaults | combine(item.proxmox_config) }}"
loop: "{{ lxc_nodes }}"
when: lxc_nodes is defined
register: container_creation_result

- name: Start predefined nodes
community.general.proxmox: "{{ proxmox_defaults | combine({'vmid': item.proxmox_config['vmid'], 'state': 'started'}) }}"
loop: "{{ lxc_nodes }}"
when:
- lxc_nodes is defined
- item.proxmox_config['state'] == 'present'
register: container_start_result

0 comments on commit 21cfb9e

Please sign in to comment.