Skip to content

Commit

Permalink
linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hitchhooker committed Mar 10, 2024
1 parent 7436b4d commit e148e9b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
15 changes: 7 additions & 8 deletions roles/proxmox_setup_nodes/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
---
# - name: Create predefined containers
# community.general.proxmox:
# api_user: "{{ api_user }}"
# api_password: "{{ api_password }}"
# api_user: "{{ proxmox_defaults.api_user }}"
# api_password: "{{ proxmox_defaults.api_password }}"
# api_host: "{{ proxmox_defaults.api_host }}"
# vmid: "{{ item.proxmox_config.vmid }}"
# hostname: "{{ item.proxmox_config.hostname }}"
# template: "{{ item.proxmox_config.ostemplate }}"
# template: "{{ item.proxmox_config.template }}"
# netif: "{{ item.proxmox_config.netif }}"
# cores: "{{ item.proxmox_config.cores }}"
# memory: "{{ item.proxmox_config.memory }}"
Expand All @@ -27,16 +27,15 @@
#
# - name: Start predefined nodes
# community.general.proxmox:
# api_user: "{{ api_user }}"
# api_password: "{{ api_password }}"
# api_user: "{{ proxmox_defaults.api_user }}"
# api_password: "{{ proxmox_defaults.api_password }}"
# api_host: "{{ proxmox_defaults.api_host }}"
# vmid: "{{ item.proxmox_config.vmid }}"
# state: 'started'
# state: "started"
# loop: "{{ lxc_nodes }}"
# when:
# - lxc_nodes is defined
# - "'state' in item.proxmox_config"
# - "item.proxmox_config['state'] == 'present'"
# - "item.proxmox_config.state == 'present'"
# register: container_start_result

- name: Create predefined containers
Expand Down
3 changes: 3 additions & 0 deletions roles/setup_install_polkadot/handlers/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@
name: polkadot
state: started
enabled: True

- name: Flush Handlers after Polkadot Install
ansible.builtin.meta: flush_handlers
5 changes: 1 addition & 4 deletions roles/setup_install_polkadot/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
group: "{{ default_user }}"
register: download_result
notify:
- Flush Handlers
- Add Service Pinned Status
- Add Polkadot service version
- Symlink Polkadot service to systemd
Expand All @@ -103,10 +104,6 @@
- ansible_local['noderole']['node']['pinned'] != "True"
- ansible_local['noderole']['node']['version'] != default_client_version

- name: Flush handlers after Polkadot install
ansible.builtin.meta: flush_handlers
when: download_result.changed

- name: Verify Polkadot version
ansible.builtin.command: "{{ default_base_path }}/polkadot --version"
register: default_client_version_result
Expand Down

0 comments on commit e148e9b

Please sign in to comment.