Skip to content

Commit

Permalink
Merge pull request #16 from ZLLentz/enh_cfg_req
Browse files Browse the repository at this point in the history
ENH: require config mode in order to run the provisioning playbook
  • Loading branch information
ZLLentz committed Mar 15, 2024
2 parents 6f1924f + ccc194e commit fe0515d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tcbsd-provision-playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@
- name: Verify connectivity with ping
ansible.builtin.ping:

- name: Run PLC mode command
register: plc_mode
changed_when: false
ansible.builtin.command:
cmd: TcSysExe.exe --mode

- name: Assert that PLC is in CONFIG mode
ansible.builtin.assert:
that: "{{ 'CONFIG' in plc_mode.stdout }}"
fail_msg: "PLC is in RUN mode! Abort!"
quiet: true

- name: Enable FreeBSD packages
when: enable_freebsd_packages
ansible.builtin.file:
Expand Down

0 comments on commit fe0515d

Please sign in to comment.