---
- name: Install Python
  hosts: pfsense
  gather_facts: no
  tasks:
    - name: bootstrap pkg
      raw: env ASSUME_ALWAYS_YES=YES pkg bootstrap -f
    - name: bootstrap python
      raw: env ASSUME_ALWAYS_YES=YES pkg install python

- name: Install Packages
  hosts: pfsense
  gather_facts: yes
  tasks:
    - name: check connection
      raw: pfSsh.php playback installpkg "Open-VM-Tools"

---
- name: Install Python
  hosts: pfsense
  gather_facts: no
  tasks:
    - name: bootstrap pkg
      raw: env ASSUME_ALWAYS_YES=YES pkg bootstrap -f
    - name: bootstrap python
      raw: env ASSUME_ALWAYS_YES=YES pkg install python

- name: Common Setup
  hosts: pfsense
  gather_facts: yes
  tasks:
    - name: Installing Open-VM-Tools if required
      raw: pfSsh.php playback installpkg "Open-VM-Tools"
      when: ansible_system_vendor == 'VMware, Inc.'

    - name: Accept Intel Licensing
      lineinfile: dest=/boot/loader.conf.local state=present legal.intel_ipw.license_ack=1
      lineinfile: dest=/boot/loader.conf.local
                  state=present
                  create=yes
                  regexp='^#?{{ item.key }}'
                  line='{{ item.key }}={{ item.value }}'
      with_items:
        - { key: 'legal.intel_ipw.license_ack', value: '1'}
        - { key: 'legal.intel_iwi.license_ack', value: '1'}

Fix typo, shutup dmesg about Intel License
Fix typo, shutup dmesg about Intel License
