Ansible—How to pass multiple module arguments ( parameters, MODULE_ARGS ) to ansible command and represent playbook?
Describe key=value
pari separated with spaces.
$ ansible -m "[module_name]" --args="key1=value2 key2=value2"
""" | |
Install Systemd units using Ansible | |
Handles unit restarting and systemd daemon reloading when the unit changes. | |
Also stops the unit correctly when uninstalled | |
In your playbook put this file to library/systemdunit.py and make sure the | |
server has python-sh package installed |
diff -ur NVIDIA-Linux-x86_64-378.13/kernel/common/inc/nv-mm.h NVIDIA-Linux-x86_64-378.13.patched/kernel/common/inc/nv-mm.h | |
--- NVIDIA-Linux-x86_64-378.13/kernel/common/inc/nv-mm.h 2017-02-08 04:58:34.000000000 +0100 | |
+++ NVIDIA-Linux-x86_64-378.13.patched/kernel/common/inc/nv-mm.h 2017-02-23 18:57:34.655592444 +0100 | |
@@ -46,6 +46,8 @@ | |
* 2016 Dec 14:5b56d49fc31dbb0487e14ead790fc81ca9fb2c99 | |
*/ | |
+#include <linux/version.h> | |
+ | |
#if defined(NV_GET_USER_PAGES_REMOTE_PRESENT) |
# UPDATED 17 February 2019 | |
# Redirect all HTTP traffic to HTTPS | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name www.domain.com domain.com; | |
return 301 https://$host$request_uri; | |
} | |
# SSL configuration |
// just add pass server as your task function | |
// Start a server with LiveReload to preview the site in | |
const OUTPUT_PARENT = 'dist' | |
const OUTPUT_DIRECTORY = OUTPUT_PARENT + '/browser-sync' | |
function server(done) { | |
browser.init({ | |
server: { | |
directory: true, |
module ActiveRecord | |
module Querying | |
delegate :or, :to => :all | |
end | |
end | |
module ActiveRecord | |
module QueryMethods | |
# OrChain objects act as placeholder for queries in which #or does not have any parameter. | |
# In this case, #or must be chained with any other relation method to return a new relation. |
#!/usr/bin/python | |
import subprocess | |
DOCUMENTATION = ''' | |
--- | |
module: postfix | |
short_description: changes postfix configuration parameters | |
description: | |
- The M(postfix) module changes postfix configuration by invoking 'postconf'. |
class Tilt::CoffeeScriptTemplate | |
SYNTAX_ERROR_MESSAGE = /SyntaxError: \[stdin\]:(\d+):(\d+)/ | |
def evaluate_with_better_errors(scope, locals, &block) | |
evaluate_without_better_errors(scope, locals, &block) | |
rescue ExecJS::RuntimeError => error | |
raise error unless error.message.match(SYNTAX_ERROR_MESSAGE) | |
line, col = $1, $2 | |
message = "SyntaxError: #{@file}:#{line}:#{col}" |
Create a runner shell script in host -> init with:
#!/bin/sh
SPICE_PORT=5924
SPARK_IMG=/home/hoa/spark-training.qcow2