Added option to skip ufw and moc autogeneration
This commit is contained in:
parent
0c6d4df098
commit
a4261dfa5c
|
@ -49,6 +49,9 @@ become_method: sudo
|
|||
|
||||
##These variables are used in each role and usually propagated to the dependent roles. By default they are different for each role and it's highly recommended not to use single for multiple roles, escpecially when they are installed on the same machine.
|
||||
|
||||
#Should playbook install ufw firewall to the nodes or not.
|
||||
install_firewall: true
|
||||
|
||||
#Which user will be used to connect to VMs
|
||||
ansible_user: ubuntu
|
||||
|
||||
|
@ -58,7 +61,7 @@ ansible_user: ubuntu
|
|||
# - name: "{{ username }}"
|
||||
#home: "/home/{{ username }}"
|
||||
|
||||
#Path to the public SSH key that will be installed to the service user
|
||||
#Path to the public SSH key that will be installed to the service user.
|
||||
install_keys_to_service_user: true
|
||||
key_name: "id_rsa.pub"
|
||||
|
||||
|
|
|
@ -15,4 +15,6 @@ bootnode_archive: "off"
|
|||
bootnode_orchestrator: "off"
|
||||
parity_api: "off"
|
||||
|
||||
reboot_after_completion: false
|
||||
reboot_after_completion: false
|
||||
|
||||
install_firewall: true
|
|
@ -19,4 +19,6 @@ MOC_ADDRESS: "0xdd0bb0e2a1594240fed0c2f2c17c1e9ab4f87126"
|
|||
|
||||
explorer_version: "acee07c"
|
||||
|
||||
reboot_after_completion: false
|
||||
reboot_after_completion: false
|
||||
|
||||
install_firewall: true
|
|
@ -40,7 +40,7 @@
|
|||
|
||||
- name: Setup ufw firewall
|
||||
import_tasks: ufw.yml
|
||||
when: not ansible_bios_version is search("amazon")
|
||||
when: install_firewall
|
||||
|
||||
- name: restart machine after setup
|
||||
shell: shutdown -r 1
|
||||
|
|
|
@ -31,3 +31,6 @@ moc_archive: "off"
|
|||
|
||||
reboot_after_completion: false
|
||||
|
||||
install_firewall: true
|
||||
|
||||
terraform: false
|
|
@ -16,31 +16,36 @@
|
|||
repo: "https://github.com/{{ MAIN_REPO_FETCH }}/poa-scripts-moc"
|
||||
dest: "{{ home }}/poa-scripts-moc"
|
||||
version: "{{ SCRIPTS_MOC_BRANCH }}"
|
||||
when: terraform==false
|
||||
|
||||
- name: Change owner and group of poa-scripts-moc file
|
||||
file: path={{ home }}/poa-scripts-moc owner={{ username }} group={{ username }} recurse=yes
|
||||
|
||||
when: terraform==false
|
||||
|
||||
- name: install npm initial_keys_script
|
||||
npm:
|
||||
path: "{{ home }}/poa-scripts-moc"
|
||||
become: true
|
||||
become_user: "{{ username }}"
|
||||
when: terraform==false
|
||||
|
||||
- name: install npm generateInitialKey
|
||||
npm:
|
||||
path: "{{ home }}/poa-scripts-moc/generateInitialKey"
|
||||
become: true
|
||||
become_user: "{{ username }}"
|
||||
when: terraform==false
|
||||
|
||||
- name: install npm distributeTokens
|
||||
npm:
|
||||
path: "{{ home }}/poa-scripts-moc/distributeTokens"
|
||||
become: true
|
||||
become_user: "{{ username }}"
|
||||
when: terraform==false
|
||||
|
||||
- name: Setup ufw firewall
|
||||
import_tasks: ufw.yml
|
||||
when: not ansible_bios_version is search("amazon")
|
||||
when: install_firewall
|
||||
|
||||
- name: restart machine after setup
|
||||
shell: shutdown -r 1
|
||||
|
|
|
@ -22,4 +22,6 @@ home: "/home/{{ username }}"
|
|||
nginx_headers: "off"
|
||||
PROXY_PORT: "3000"
|
||||
|
||||
reboot_after_completion: false
|
||||
reboot_after_completion: false
|
||||
|
||||
install_firewall: true
|
|
@ -46,7 +46,7 @@
|
|||
|
||||
- name: Setup ufw firewall
|
||||
import_tasks: ufw.yml
|
||||
when: not ansible_bios_version is search("amazon")
|
||||
when: install_firewall
|
||||
|
||||
- name: restart machine after setup
|
||||
shell: shutdown -r 1
|
||||
|
|
|
@ -19,4 +19,6 @@ SCRIPTS_VALIDATOR_BRANCH: "mainnet"
|
|||
MAIN_REPO_FETCH: "poanetwork"
|
||||
BLK_GAS_LIMIT: "6700000"
|
||||
|
||||
reboot_after_completion: false
|
||||
reboot_after_completion: false
|
||||
|
||||
install_firewall: true
|
|
@ -41,7 +41,7 @@
|
|||
|
||||
- name: Setup ufw firewall
|
||||
import_tasks: ufw.yml
|
||||
when: not ansible_bios_version is search("amazon")
|
||||
when: install_firewall
|
||||
|
||||
- name: restart machine after setup
|
||||
shell: shutdown -r 1
|
||||
|
|
Loading…
Reference in New Issue