Import existing playbooks in ansible ui semaphore or awx - automation

Team we are having almost 100+ playbooks already written,now we need to play the playbooks from GUI,we have to import this in GUI(semaphore or AWX).
In semaphore ui there is no option ,to import the existing playbooks
how can we import the existing playbooks in ansible GUI.we are looking only opensource GUIS
Thanks for your help in advance.

Quoting from 10. Setting up a Project
You can manage playbooks and playbook directories by either placing them manually under the Project Base Path on your Tower server, or by placing your playbooks into a source code management (SCM) system supported by Tower, including Git, Subversion, and Mercurial.
Details are available at AWX Project

Related

Why did Pycharm ask me to set up a sync folder every time when I add a remote interpreter?

Every time I tried to config a remote interpreter, Pycharm asked me to set a sync folder. In my routine, I usually have the Cannot find declaration to go to error which can not be solved by invalidating caches. So I have to config the interpreter again. And these caused the redundant folders in my remote machine. And another situation is that I want to create other projects with the same interpreter. Where I have to config the folder mapping for each project to make the interpreter valid.
I do not understand this way. In my opinion, the sync folders should correspond to my local project. And the interpreter should be independent of the projects.
Every time I tried to config a remote interpreter, Pycharm asked me to set a sync folder.
To be able to execute a script on the remote machine, it is necessary to make sure it exists on it. This is by design, but if you already have a project folder deployed, you can change the suggested paths to needed ones during the interpreter configuration.
See step 7. https://www.jetbrains.com/help/pycharm/configuring-remote-interpreters-via-ssh.html#ssh
And another situation is that I want to create other projects with the same interpreter. Where I have to config the folder mapping for each project to make the interpreter valid.
Unfortunately, this setup does not work, please vote for
https://youtrack.jetbrains.com/issue/PY-40680/Allow-reusing-a-single-remote-interpreter-in-multiple-project
to increase its priority.

download API mongodb, react, nodejs and etc

I have very bad internet, so I want to download the api(mongodb, react, nodejs) I need to work on a project on a local computer, tell me if this can be done?
You could probably play with "npm cache add some-package.tar.bz2" or with npm-proxy but it will probably require too much effort (or will not resolve all issues).
Alternative way would be to setup proxy server(for example squid) to keep once downloaded files localy at your server/computer.
This way you configure your system (and tools) to use yours proxy server.
So when vagrant, apt, npm, grunt or some other tool need some file from internet during the build it will download it only once and get it out of the cache of proxy server during subsequent requests.
majority of tools favour environment variables HTTP_PROXY and HTTPS_PROXY.
So you could setup docker container, virtual machine or just service (squid has windows binaries as well) and configure your system to use proxy server, i.e. add environment variables either globaly or in bash file for build process only.
Lets suppose you configured your squid at docker container with IP address 172.17.0.34. then your build script would look like:
#!/bin/bash
export HTTP_PROXY=172.17.0.34:3128
export HTTPS_PROXY=172.17.0.34:3128
npm install
For it to take global effect you could place these two lines into your /etc/environment file:
HTTP_PROXY=172.17.0.34:3128
HTTPS_PROXY=172.17.0.34:3128

IntelliJ - running as sudo throough JetBrains Toolbox

I want to start intelliJ from Toolbox and manage it from there but need intelliJ to run as sudo. Does anyne know if it's possible?
Edit:
I need this because on my local machine my application cannot create folders for which normally root is needed - saving logs to specific folder in system.
Compared to run JetBrains App from Toolbox with root, it's easier for you to change that specific folder non-root user writable, with something like
sudo chown <user> <folder>
However, this may cause some security problem if that specific folder is somewhere system wide related, for example inside /usr/bin/, so it's better not to do so. But if you really need that, you may try to gain sudo privilege for example use gksudo while running your application.

PyCharm - Send directory to run configuration from right-click menu?

I have a run configuration in PyCharm with script parameters that take in a directory. Then, I have several directories (a changing number) in my project which I would like to easily be able to run this configuration on. Is there anyway to add an option to the right-click menu of directories to run the configuration passing that directory to the configuration? Or some other method which provides similar accessibility to running the configuration on a directory?
For my specific problem, I have many log directories for TensorBoard (from TensorFlow) and I would like to selectively and easily be able to start up an instance of TensorBoard running on a given directory.
Basically if you would run it in pycharm You can write your own plugin to add some functionality to the IDE. There is a great documentation on how to create plugins in idea/pycharm:
http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started.html
We have done it before and it was a successful plugin, it really sped up the development processs. :)

Deleting temp files through Jenkins

I have Selenium Hub and Jenkins node on the same machine.
I want to cleanup the %Temp% directory before each jenkins build.
Is there a better way to do this. I am trying to use Hudson import in the build code, but it is cleaning up the workspace folders but not the TEMP directory on windows.
I tried a couple of things like
https://wiki.jenkins-ci.org/display/JENKINS/Tmp+Cleaner+Plugin
https://wiki.jenkins-ci.org/display/JENKINS/Delete+.tmp+files+left+in+workspace-files
But I was not able to achieve what I was looking for.
Any help would be really appreciated.