I believe in log-cleanup-find.yml and others the line "- host: sas-all" should actually be sas_all as defined in the sas_viya_playbook/inventory.ini.
Is that correct?
If we leave the default of sas-all the log-cleanup-find.yml playbook fails with the following:
PLAYBOOK: log-cleanup-find.yml ********************************************************************************************************************************************************************************************************* 1 plays in viya-ark/playbooks/log-cleanup/log-cleanup-find.yml [WARNING]: Could not match supplied host pattern, ignoring: sas-all
If I change log-cleanup-find.yml to have sas_all it finds all my hosts and completes:
...
ok: [casWorker1] => (item={u'rusr': True, u'uid': 1000, u'rgrp': True, u'xoth': False, u'islnk': False, u'woth': False, u'nlink': 1, u'issock': False, u'mtime': 1677747600.0891082, u'gr_name': u'sas', u'path': u'/opt/sas/viya/config/var/log/log-20230131090000Z.zip', u'xusr': False, u'atime': 1677747600.076109, u'inode': 279195785, u'isgid': False, u'size': 22, u'isdir': False, u'ctime': 1677747600.0891082, u'isblk': False, u'wgrp': False, u'xgrp': False, u'isuid': False, u'dev': 64768, u'roth': True, u'isreg': True, u'isfifo': False, u'mode': u'0644', u'pw_name': u'sas', u'gid': 1000, u'ischr': False, u'wusr': True}) => { "msg": "/opt/sas/viya/config/var/log/log-20230131090000Z.zip" } META: ran handlers META: ran handlers
PLAY RECAP ***************************************************************************************************************************************************************************************************************************** casWorker1 : ok=4 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 casWorker2 : ok=4 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 deployServices : ok=4 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 deployTarget : ok=4 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
If this is correct each one of the .yml files above with sas-all may need to be changed to sas_all instead to match the sas_viya_playbook/inventory.ini file.
... View more