How can I prevent the dpkg install task from being notified of the changed state when it runs a second time?


Snowing

There isn't a single module that directly installs .deb packages. When you have to run dpkg as a command, it always marks the install task as changed. I'm having some trouble configuring it correctly, so I'll post it here as a public notebook.

Here is the task installed using dpkg:

- name: Install old python 
  command: dpkg -i {{ temp_dir }}/{{ item }}
  with_items: 
    - python2.4-minimal_2.4.6-6+precise1_i386.deb
    - python2.4_2.4.6-6+{{ ubuntu_release }}1_i386.deb
    - libpython2.4_2.4.6-6+{{ ubuntu_release }}1_i386.deb
    - python2.4-dev_2.4.6-6+{{ ubuntu_release }}1_i386.deb

Upload files to {{temp_dir}} in another task.

Grahamrhay

In Ansible 1.6 (and later), the apt module has a deb option:

- apt: deb=/tmp/mypackage.deb

Related


How can I be notified when the acquisition type DP is changed?

j My English ability is very poor because I can't speak English. I have created the following behavior which works on the TextBox control. The behavior has a collection type DP called Items. class HighlightBehavior : Behavior<TextBox> { public List<TextStyle>

How can I be notified when the acquisition type DP is changed?

j My English ability is very poor because I can't speak English. I have created the following behavior which works on the TextBox control. The behavior has a collection type DP called Items. class HighlightBehavior : Behavior<TextBox> { public List<TextStyle>

How can I be notified when the acquisition type DP is changed?

j My English ability is very poor because I can't speak English. I have created the following behavior which works on the TextBox control. The behavior has a collection type DP called Items. class HighlightBehavior : Behavior<TextBox> { public List<TextStyle>

How can I be notified when the acquisition type DP is changed?

j My English ability is very poor because I can't speak English. I have created the following behavior which works on the TextBox control. The behavior has a collection type DP called Items. class HighlightBehavior : Behavior<TextBox> { public List<TextStyle>

How can I be notified when the acquisition type DP is changed?

j My English ability is very poor because I can't speak English. I have created the following behavior which works on the TextBox control. The behavior has a collection type DP called Items. class HighlightBehavior : Behavior<TextBox> { public List<TextStyle>

How to prevent data from being loaded in NgRx a second time?

Irina I have a DOM block: <div (click)="toggle(block)"> <div *ngIf="block.opened"> <div *ngFor="let item of block.items"></div> </div> </div> On click I dispatch action to load data from server and display this data in block: toggle(block: Regist

How to prevent data from being loaded in NgRx a second time?

Irina I have a DOM block: <div (click)="toggle(block)"> <div *ngIf="block.opened"> <div *ngFor="let item of block.items"></div> </div> </div> On click I dispatch action to load data from server and display this data in block: toggle(block: Regist

How to prevent data from being loaded in NgRx a second time?

Irina I have a DOM block: <div (click)="toggle(block)"> <div *ngIf="block.opened"> <div *ngFor="let item of block.items"></div> </div> </div> On click I dispatch action to load data from server and display this data in block: toggle(block: Regist

How to prevent data from being loaded in NgRx a second time?

Irina I have a DOM block: <div (click)="toggle(block)"> <div *ngIf="block.opened"> <div *ngFor="let item of block.items"></div> </div> </div> On click I dispatch action to load data from server and display this data in block: toggle(block: Regist

How can I make sure the javascript event runs the second time?

Jared Newnam I have a button that when clicked displays a message "Copied!". I have created a .hiddenclass and am using classListproperties and add()methods to apply it to messages. The hidden class contains a transition that can make the element fade out. Cur

How can I make sure the javascript event runs the second time?

Jared Newnam I have a button that when clicked displays a message "Copied!". I have created a .hiddenclass and am using classListproperties and add()methods to apply it to messages. The hidden class contains a transition that can make the element fade out. Cur

How can I make sure the javascript event runs the second time?

Jared Newnam I have a button that when clicked displays a message "Copied!". I have created a .hiddenclass and am using classListproperties and add()methods to apply it to messages. The hidden class contains a transition that can make the element fade out. Cur

How can I make sure the javascript event runs the second time?

Jared Newnam I have a button that when clicked displays a message "Copied!". I have created a .hiddenclass and am using classListproperties and add()methods to apply it to messages. The hidden class contains a transition that can make the element fade out. Cur