ansible-plugin icon indicating copy to clipboard operation
ansible-plugin copied to clipboard

Ansible File Copier configuration not being saved

Open martinbydefault opened this issue 7 years ago • 8 comments

The changes in the configuration of the plugin Ansible File Copier aren't saved.

I'm using rundeck 2.8.1-1 and last release of this plugin (2.2.0, but this also happened in 2.0.2) and I have the following problem.
When I go to Project configuration -> Simple Configuration, in the last configuration item: Default Node File Copier, after selecting Ansible File Copier and setting some parameters (in my case I only set: SSH Authentication type, SSH User and SSH Key File path) and hitting the save button, the changes aren't saved.
The only change that is made is the Default FIle Copier option is changed to Ansible File Copier but nothing else.
Also If I go to Edit Configuration File the only thing that changed is: service.FileCopier.default.provider=com.batix.rundeck.plugins.AnsibleFileCopier

Anyhow, I'm not using this option because I still get to copy files in my playbooks, but I think this problem affects the Copy File plugin if I wanted to use as a step it in a workflow.

martinbydefault avatar Sep 20 '17 18:09 martinbydefault

Are there errors in the rundeck log?

DerekTBrown avatar Sep 24 '17 03:09 DerekTBrown

@martinbydefault also, if you edit the xml manually, is that saved?

DerekTBrown avatar Sep 27 '17 17:09 DerekTBrown

I checked the logs in journalctl and rundeck.log file and I didn't see any error.
If I edit the xml manually (using the "Edit Configuration File" button) the changes are saved, I did this with other fields (not related with the file copier plugin), but the problem is that I don't know what are the fields related to the Ansible File Copier plugin.
I tried to inspect the plugin code but I didn't figure out what are the name of the fields I should edit, for example to set: SSH Authentication type, SSH User and SSH Key File path.

martinbydefault avatar Oct 02 '17 18:10 martinbydefault

I can confirm this is still present with rundeck 3.3.8 and the latest ansible plugin 3.1.1.

Anyone know what the configuration should look like? I need to specify for it to use priv escalation with sudo.

mariuspana avatar Mar 03 '21 11:03 mariuspana

I can confirm that bug also

  • rundeck 3.4.3-20210823
  • ansible 2.7.9
  • database: mysql

I used docker-compose from https://github.com/rundeck/docker-zoo/tree/master/mysql

Does anyone have a solution?

diginote avatar Aug 26 '21 15:08 diginote

I can confirm this issue still exists with: OS: Alma Linux8 Rundeck: 4.3.1 RPM Setup Ansible Plugin: 3.1.1 Ansible: core 2.12.3 (pip3 setup as rundeck user)

Does anyone have a solution or workaround to this issue?

joe-speedboat avatar Jun 23 '22 08:06 joe-speedboat