Ansible:ansible-playbook delegate_to错误(Ansible: ansible-playbook delegate_to error)
我有一本剧本,这是其中的一部分。
...
- name: Wait for SSH to start wait_for: host: "{{ newmachines.instances[0].public_ip }}" port: 22 timeout: 300 delegate_to: localhost
... ansible-playbook --check create_instance.yml.old错误:delegate_to不是Ansible Play的合法参数
ansible-playbook --version ansible-playbook 1.9.4配置模块搜索路径=无
我该如何解决?
I have a playbook, this is a part of it.
...
- name: Wait for SSH to start wait_for: host: "{{ newmachines.instances[0].public_ip }}" port: 22 timeout: 300 delegate_to: localhost
... ansible-playbook --check create_instance.yml.old ERROR: delegate_to is not a legal parameter of an Ansible Play
ansible-playbook --version ansible-playbook 1.9.4 configured module search path = None
How can i fix it?
原文:https://stackoverflow.com/questions/33305518
最满意答案
假设该指令使用双向绑定,您可以传递字符串常量,如下所示:
<Input-Box text="'this is a value'" type="'text'" placeholder="'type something in'" />
另一方面,根据Angular指令的约定,最好将指令
input-box
命名为Input-Box
Assuming the directive uses bi-directional binding, you can pass in string constant like so:
<Input-Box text="'this is a value'" type="'text'" placeholder="'type something in'" />
On another note, as per the convention for Angular directives, it is better to name your directive
input-box
rather thanInput-Box
相关问答
更多-
对于Angular 1.x,在HTML中使用ng-bind-html : 此时,您将会attempting to use an unsafe value in a safe context错误中attempting to use an unsafe value in a safe context因此您需要使用ngSanitize或$ sce来解决此问题。 $ SCE 在控制器中使用$sce.t ...
-
更好的方法是编写可以跨控制器使用的实用程序服务。 在不同的控制器中使用此服务。 您的服务将如下所示: (function() { 'use strict'; // this function is strict... angular .module('myapp.services', []) .service('Utility', function() { var Utility = {}; Utility.edit = function(id, data ...
-
你必须做两件事。 使用data-ng-bind-html =“” 使用$ sce.trustAsHtml(string) 更新:如果您不想使用角度表达式,则必须使用它们进行编译 $ compile 。 您可以通过此$ SCE了解更多信息 You have to do 2 things. Use data-ng-bind-html="" Use $sce.trustAsHtml(string) UPDATED: If you wont to use angular expressions, you have ...
-
首先,您的JSON不是有效的,将其更改为, [{“statusMessageType”:{“MasterConsignment”:{“ReportedStatus”:{“ReasonCode”:“var”}}}},{“statusMessageType”:{“MasterConsignment”:{“ReportedStatus”:{“ReasonCode”:“ car“}}}},{”statusMessageType“:{”MasterConsignment“:{”ReportedStatus“:{”Re ...
-
你不会说你正在使用哪个渲染引擎: MVC3: @ Html.Raw(Model.Description) You don't say which rendering engine you're using: MVC3: @Html.Raw(Model.Description)
-
角度html视图中的字符串常量而不是使用控制器(string constant in angular html view instead of using controller)[2023-04-17]
假设该指令使用双向绑定,您可以传递字符串常量,如下所示:另一方面,根据Angular指令的约定,最好将指令input-box命名为Input-Box Assuming the directive uses bi-directional binding, you can pass in string constant like so: ... -
从角度控制器获取数据并在html视图上显示它得到错误(fetching data from angular controller and display it on the html view got error)[2021-11-17]
如果根据您的架构获得数据,那么您的角度控制器可以像下面一样在media添加每个视频URL 。 因为你的courseLecture是一个数组,并且在courseLecture lecture_video中courseLecture lecture_video也是一个数组,所以需要迭代为media数组,因此需要两个forEach或for循环。 $scope.product = { name: 'some name', description: 'some description', me ... -
使用角常量(Using angular constant)[2023-06-08]
你没有正确地注入常数。 ['$location', 'Users', 'balrogConfig', function ($location, Users, balrogConfig) You don't inject the constant properly. ['$location', 'Users', 'balrogConfig', function ($location, Users, balrogConfig) -
以角度js向控制器注入常量(模态弹出问题)(Inject constant to a Controller in angular js(Issue with modal popup))[2023-08-02]
尝试这个 $modal.open({ templateUrl: 'PopUpTemplate.htm', controller: function ($modalInstance, grid, row, UserPopUpSchema) { // Do Stuff }, resolve: { grid: function () { return grid; }, row: function () ... -
从角度服务调用角度路径以加载新视图和控制器(invoking an angular route from angular service to load a new view and controller)[2021-08-11]
应该能够使用$location.path('/search/query')来做到这一点 function getSearchResults(searchRequest) { return $http.post('search/query', searchRequest, {}).then(function (response) { myEsResults = response.data; $location.path('/search/query'); ...