IBM / community-automation

community-automation is meant to be a place where developers can contribute to a library of ansible playbooks related to Red Hat OpenShift Container Platform, from installing OCP to post install activities. It is the intent that these playbooks and roles can be reused by any team that is looking to automate their CI/CD pip
Apache License 2.0
26 stars 54 forks source link

common fyre_vm failures after refactoring #205

Closed stevenschader closed 2 years ago

stevenschader commented 3 years ago

Describe the bug fyre vm refactoring problems.

Example:

TASK [instana_fyrevm : include_tasks] *****************************************************************************************************************
task path: /mnt/data/git/community-automation/ansible/roles/instana_fyrevm/tasks/main.yml:3
fatal: [localhost]: FAILED! => {
  "reason": "conflicting action statements: include_role, fyre_memory\n\nThe error appears to be in '/mnt/data/git/community-automation/ansible/roles/instana_fyrevm/tasks/instana_fyrevm.yml': line 3, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Create FyreVM with appropriate spec\n ^ here\n"
stevenschader commented 3 years ago

I'm getting this error once the fyre_vm yaml is corrected:

TASK [fyrevm_provision : Ensure SSH Key] **************************************************************************************************************
task path: /mnt/data/git/community-automation/ansible/roles/fyrevm_provision/tasks/fyrevm_provision.yml:14
fatal: [localhost]: FAILED! => {
    "changed": false, 
    "invocation": {
        "module_args": {
            "path": "/home/nest/.ssh/id_rsa", 
            "regenerate": "never"
        }
    }, 
    "msg": "Unsupported parameters for (openssh_keypair) module: regenerate Supported parameters include: attributes, backup, comment, content, delimiter, directory_mode, follow, force, group, mode, owner, path, regexp, remote_src, selevel, serole, setype, seuser, size, src, state, type, unsafe_writes"
}

https://github.com/IBM/community-automation/blob/a05b0ddf182dc286fca2d81ded451e42183212bf/ansible/roles/fyrevm_provision/tasks/fyrevm_provision.yml#L17

If I use the community-automation docker image I don't get this error...