Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
ansible-js-bindings
Advanced tools
This library is a js bindings of ansible-playbook.
It provided two drop-in API of exec
and execFile
which are similiar to child_process.exec
/child_process.execFile
but will execute on remote nodes.
git clone http://github.xsky.com/testing/ansible-js-bindings.git && cd ansible-js-bindings
add nodes in inventory file
const path = require('path');
const Ansible = require('../src');
const ansible = new Ansible({
inventoryPath: path.resolve(__dirname, 'assets/inventory'),
});
(async function() {
try {
let res;
console.log('execute shell command');
res = await ansible.exec(
'echo "test ansible js bindings with execute inline shell"'
);
console.log('shell result:', res);
} catch (error) {
console.error(error);
}
})();
const path = require('path');
const Ansible = require('../src');
const ansible = new Ansible({
inventoryPath: path.resolve(__dirname, 'assets/inventory'),
});
(async function() {
try {
let res;
console.log('execute shell script');
res = await ansible.execFile(path.resolve(__dirname, 'assets/example.sh'));
console.log('shell result:', res);
console.log('execute python script');
res = await ansible.execFile(path.resolve(__dirname, 'assets/example.py'));
console.log('python result:', res);
} catch (error) {
console.error(error);
}
})();
FAQs
This library is a js bindings of ansible-playbook.
The npm package ansible-js-bindings receives a total of 3 weekly downloads. As such, ansible-js-bindings popularity was classified as not popular.
We found that ansible-js-bindings demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.