changed oc_secret_add to oc_serviceaccount_secret
register: sa_out
- name: add secrets to service accounts
- oc_secret_add:
+ oc_serviceaccount_secret:
service_account: "{{ item.name }}"
secrets: "{{ item.value }}"
namespace: default
- name: default
value:
- registry-secret
- register: secret_add_out
+ register: sasecret_out
- debug:
msg: "{{ svc_out.changed or cert_secret_out.changed or registry_config_out.changed or sa_out.changed }}"
