--- - hosts: all gather_facts: no vars: ansible_remote_tmp: /tmp ssh_executable: shell tasks: - name: Enter shell shell: ls - name: Execute aws-cost script shell: cat /nsconfig/license/FID_449a0c5a_a0c5_4bdb_98e1_200eff40afc7.lic | grep -oE '\.*[0-9]+\-(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\-[0-9][0-9][0-9][0-9]'