# Install PoshC2
  - name: run APT upgrade
    become: true
    apt:
      upgrade: 'yes'
      update_cache: yes
      cache_valid_time: 600
  - name: check if PoshC2 files are present
    stat:
      path: /opt/PoshC2/install.sh
    register: poshc2_present
  - name: git-clone PoshC2
    become: true
    git:
      repo: 'https://github.com/nettitude/PoshC2.git'
      dest: /opt/PoshC2/
      version: latest
    when: poshc2_present.stat.exists == false
  - name: run PoshC2 install script
    become: true
    command: ./Install.sh
    args:
      chdir: /opt/PoshC2
    when: poshc2_present.stat.exists == false
Add ansible build file to PoshC2
Add ansible build file to PoshC2
